public void StartBrowser_PerformGoogleSearch_AssertOnResultPage_StopBrowser()
        {
            selenium.NavigateTo("https://www.google.com");

            selenium.SendKeys(By.Name("q"), "Thomsons Online Benefits");

            selenium.Click(By.Name("btnK"));

            Assert.IsTrue(selenium.TitleIsEqualTo("Thomsons Online Benefits - Google zoeken"));

            Assert.IsTrue(selenium.ElementIsVisible(By.Id("resultStats")));
        }
 public bool ResultStatsAreDisplayed()
 {
     return(selenium.ElementIsVisible(textfieldResultStats));
 }
 public bool PageIsLoaded()
 {
     return(SeleniumHelpers.ElementIsVisible(_driver, TextlabelPageHeader));
 }
示例#4
0
 public bool ErrorMessageIsVisible()
 {
     return(SeleniumHelpers.ElementIsVisible(_driver, TextlabelErrorMessage));
 }