Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created February 12, 2017 15:27
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/acc6abb4e9d4335121fcc73c11cd41f7 to your computer and use it in GitHub Desktop.
Save angelovstanton/acc6abb4e9d4335121fcc73c11cd41f7 to your computer and use it in GitHub Desktop.
public partial class HomePage
{
private readonly IWebDriver driver;
private readonly string url = @"http://automatetheplanet.com";
public HomePage(IWebDriver browser)
{
this.driver = browser;
PageFactory.InitElements(browser, this);
}
public void Navigate()
{
this.driver.Navigate().GoToUrl(this.url);
}
public void GoToBlog()
{
this.GoToTheBlogLink.Click();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment