Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created May 24, 2017 17:33
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/b9e8cf360f9e6af8ccb5e3943f98effb to your computer and use it in GitHub Desktop.
Save angelovstanton/b9e8cf360f9e6af8ccb5e3943f98effb to your computer and use it in GitHub Desktop.
public partial class LoginPage
{
private readonly IWebDriver _driver;
private readonly string _url = @"https://www.telerik.com/login";
public LoginPage(IWebDriver browser)
{
_driver = browser;
LoginSection = new LoginSection(_driver);
MainNavigationSection = new MainNavigationSection(_driver);
ConnectWithSection = new ConnectWithSection(_driver);
}
public LoginSection LoginSection { get; private set; }
public MainNavigationSection MainNavigationSection { get; private set; }
public ConnectWithSection ConnectWithSection { get; private set; }
public void Navigate() => _driver.Navigate().GoToUrl(_url);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment