Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created February 12, 2017 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angelovstanton/92b5ab4d5290eddf022b0d0554ae69a6 to your computer and use it in GitHub Desktop.
Save angelovstanton/92b5ab4d5290eddf022b0d0554ae69a6 to your computer and use it in GitHub Desktop.
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