Exemplo n.º 1
0
        public void LogIn()
        {
            var user = new AccauntData("*****@*****.**", "123456789");

            app.Navigate.OpenHomePage();
            app.Auth.EnterEmail(user);
            app.Auth.EnterPassword(user);
            app.Auth.ClickOnLoginButton();
            Thread.Sleep(5000);

            app.Navigate.OpenMenu();
            app.Navigate.OpenSettings();
            var actualLogin = app.Navigate.getAccountLogin();

            app.Navigate.CloseSettings();
            Assert.AreEqual(user.Login, actualLogin);
        }
Exemplo n.º 2
0
 public void EnterEmail(AccauntData user)
 {
     driver.FindElement(By.Id("email")).Click();
     driver.FindElement(By.Id("email")).SendKeys(user.Login);
 }
Exemplo n.º 3
0
 public void EnterPassword(AccauntData user)
 {
     driver.FindElement(By.Id("password")).Click();
     driver.FindElement(By.Id("password")).SendKeys(user.Password);
 }