Created
May 24, 2017 17:38
-
-
Save angelovstanton/40273a0870ebf21a24a39f58125e75eb 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 SignUpPage | |
{ | |
private readonly IWebDriver _driver; | |
private readonly string _url = @"https://www.telerik.com/login/v2"; | |
public SignUpPage(IWebDriver browser) | |
{ | |
_driver = browser; | |
MainNavigationSection = new MainNavigationSection(_driver); | |
ConnectWithSection = new ConnectWithSection(_driver); | |
} | |
public MainNavigationSection MainNavigationSection { get; private set; } | |
public ConnectWithSection ConnectWithSection { get; private set; } | |
public void Navigate() => _driver.Navigate().GoToUrl(_url); | |
public void SignUpDefault(string email, string password) | |
{ | |
FirstName.SendKeys(Guid.NewGuid().ToString()); | |
LastName.SendKeys(Guid.NewGuid().ToString()); | |
Company.SendKeys("Automate The Planet"); | |
Country.SelectByText("Bulgaria"); | |
Phone.SendKeys("+44 13 4436 0444"); | |
Email.SendKeys(email); | |
Password.SendKeys(password); | |
LaunchButton.Click(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment