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"); }
public void ThenIShouldSeeTextOnPage(string p0) { new WebDriverWait(sel.Driver, TimeSpan.FromSeconds(3000)).Until(ExpectedConditions.TextToBePresentInElement(sel.Driver.FindElement(By.TagName("body")), p0)); }