Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created June 19, 2016 13:57
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/f5bbeb14e4fad0a651277017521942e1 to your computer and use it in GitHub Desktop.
Save angelovstanton/f5bbeb14e4fad0a651277017521942e1 to your computer and use it in GitHub Desktop.
public abstract class BasePage
{
protected IWebDriver driver;
public BasePage(IWebDriver driver)
{
this.driver = driver;
}
public abstract string Url { get; }
public virtual void Open(string part = "")
{
this.driver.Navigate().GoToUrl(string.Concat(this.Url, part));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment