Esempio n. 1
0
        public void SeveralLoginTests(string login, string password, string username)
        {
            LandingPage.OpenLoginForm();

            // Thread.Sleep. It's not generally a waiter in Selenium WebDriver context, but if imagine it is I would say it's an explicit waiter
            // Because it declared explicitly in specific chunk of test code
            System.Threading.Thread.Sleep(1000);

            LandingPage.WaitFindElement(LandingPage.LoginInput).SendKeys(login);
            LandingPage.WaitFindElement(LandingPage.PasswordInput).SendKeys(password);
            LandingPage.WaitFindElement(LandingPage.LoginButton).Click();

            Assert.True(LandingPage.WaitFindElement(LandingPage.UsernameLabel).Text == username);

            LandingPage.Logout();
        }
Esempio n. 2
0
 public void OneTimeSetup()
 {
     ExcelReader.PopulateInCollection(ExcelReader.excelPath, ExcelReader.loginTestsTableName);
     LandingPage.OpenLandingPage();
 }