Created
February 12, 2017 15:30
-
-
Save angelovstanton/92b5ab4d5290eddf022b0d0554ae69a6 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
public partial class BlogPage | |
{ | |
private readonly IWebDriver driver; | |
private readonly string url = @"http://automatetheplanet.com/blog"; | |
public BlogPage(IWebDriver browser) | |
{ | |
this.driver = browser; | |
PageFactory.InitElements(browser, this); | |
} | |
public void WaitForSubscribeWidget() | |
{ | |
new WebDriverWait(driver, TimeSpan.FromSeconds(30)).Until(ExpectedConditions.ElementExists((By.ClassName("subscribe")))); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment