Beispiel #1
0
 static void Initialize()
 {
     General.WriteLog("Opening driver");
     General.driver = new ChromeDriver();
     General.driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(5));
     General.driver.Navigate().GoToUrl(General.path);
     logon = new LogonPage();
 }
Beispiel #2
0
 public MailPage Login(string username, string password)
 {
     General.WriteLog("Logging in");
     this.Username.SendKeys(username);
     this.Next.Click();
     var temp = new LogonPage();
     temp.Password.SendKeys(password);
     temp.SignIn.Click();
     return new MailPage();
 }