public void AddReview(String wineName, String wineryName, String newWineryName) { selenium.open("/"); selenium.click("link=Reviews"); selenium.waitForPageToLoad("30000"); // add new review TestUtils.AddButton(selenium); TestUtils.TypeWineData( selenium, wineName, wineryName, newWineryName, "White", "2010", "12", "14", "750 ml", "12", "Glass", "aged in glass", "5000 l", "Closure1", "Cabernet", "100", "A very nice wine!", "Color", "Very nice color!"); TestUtils.TypeReviewData(selenium, "3", "1", "2", "3", "This is the text of the review"); TestUtils.SubmitButton(selenium); }
public void AddReviewExistingWine(String wineName) { selenium.open("/"); selenium.click("link=Reviews"); selenium.waitForPageToLoad("30000"); // add new review TestUtils.AddButton(selenium); TestUtils.SelectWine(selenium, wineName); TestUtils.TypeReviewData( selenium, "3", "1", "2", "3", "This is the text of the review" + new Date()); TestUtils.SubmitButton(selenium); }
public void AddWinery(String winery) { selenium.open("/"); selenium.click("link=Wineries"); selenium.waitForPageToLoad("30000"); // add new winery TestUtils.AddButton(selenium); TestUtils.TypeWineryData( selenium, winery, TestUtils.randomEmail(), "http://testwinery.com", "Test Street 88", "Testingvile", "123456789", "About test winery"); }