public MainMailPage LoginToMail(string login, string password) { LoginMailPage loginMailPage = new LoginMailPage(this.driver); loginMailPage.GoToPage(); return(loginMailPage.LoginToMail(login, password)); }
public void SetUp() { this.driver = new ChromeDriver(); this.controller = new GmailController(this.driver); string firstMail = controller.GetFirstMail(); string firstPassword = controller.GetFirstPassword(); controller.StartGmail(); LoginMailPage loginMailPage = new LoginMailPage(this.driver); loginMailPage.SetMail(firstMail); LoginPasswordPage loginPasswordPage = loginMailPage.GoToPasswordPage(); loginPasswordPage.SetPassword(firstPassword); this.inboxGmailPage = loginPasswordPage.LoginClick(); }