Exemple #1
0
        public void ThenThePageShouldChangeToUKVersion()
        {
            new WebDriverWait(sel.Driver, TimeSpan.FromSeconds(3000)).Until(ExpectedConditions.TextToBePresentInElement(sel.Driver.FindElement(By.XPath("//div/span/span")), "United Kingdom"));
            String currentURL = sel.Driver.Url;

            Assert.AreEqual(currentURL, "https://www.ubs.com/uk/en.html");
        }
Exemple #2
0
 public void ThenIShouldSeeTextOnPage(string p0)
 {
     new WebDriverWait(sel.Driver, TimeSpan.FromSeconds(3000)).Until(ExpectedConditions.TextToBePresentInElement(sel.Driver.FindElement(By.TagName("body")), p0));
 }