Created
September 17, 2018 13:59
-
-
Save angelovstanton/8e1f10eb495ea8a0dad0de03d059c4e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IWebDriver driver = new ChromeDriver(); | |
driver.Navigate().GoToUrl("http://demos.bellatrix.solutions/"); | |
var wait = new WebDriverWait(driver, TimeSpan.FromSeconds(30)); | |
var promotionsLocator = By.Id("Promotions"); | |
wait.Until(ExpectedConditions.ElementExists(promotionsLocator)); | |
var promotionsLink = wait.Until(ExpectedConditions.ElementToBeClickable(promotionsLocator)); | |
promotionsLink.Click(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment