public void LoginTest() { LoginServices s = new LoginServices(driver); Login login = BOGenerator.generateSimpleLogin(); s.setLoginAndClickNext(login); Assert.IsTrue(s.singInExists()); }
public void PasswordTest() { LoginServices s = new LoginServices(driver); Login login = BOGenerator.generateSimpleLogin(); s.setPasswordAndClickSignIn(login); Assert.IsTrue(s.logoutExists()); }
public void TestMethod1() { IWebDriver driver = new ChromeDriver(); driver.Url = "http://yandex.ru"; driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(10)); User user = BOGenerator.createUser("super.bizmartek", "nfhfyhb87KGD"); new LoginLogoutService(driver).login(user); Assert.IsTrue(new LoginPage(driver).isPostDysplayed()); new WriteMailService(driver).writeMessage(); new WriteMailService(driver).prepareMessage(); // new LoginLogoutService(driver).logout(user); // Assert.IsTrue(new LoginPage(driver).isPasswdDisplayed()); // driver.Close(); }
//private BOGenerator _bog = new BOGenerator(); public Collection <Asistencia> ConsultaRegistroAsistenciaMes(int mes, int anno, int depart) { BOGenerator _bog = new BOGenerator(); return(_bog.ConsultaRegistroAsistenciaMes(mes, anno, depart)); }