Esempio n. 1
0
        public void NegativeLogin(object webDriverType)
        {
            Browser = webDriverFactory.GetDriver(webDriverType);
            HeaderPage headerPage = new HeaderPage(this.Browser);
            LoginPage  loginPage;

            headerPage.Navigate();
            loginPage = headerPage.GotoLoginPage();
            loginPage.Login("*****@*****.**", "worng");
            loginPage.Validate().LoginErrorMessage("There is 1 error", "Authentication failed.");
            Browser.Quit();
        }
Esempio n. 2
0
        public void PositiveLogin()
        {
            Browser = webDriverFactory.GetDriver(WebDriverFactoryType.FireFox);
            Wait    = new WebDriverWait(this.Browser, TimeSpan.FromSeconds(30));
            Browser.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(30);
            HeaderPage headerPage = new HeaderPage(this.Browser);
            LoginPage  loginPage;

            headerPage.Navigate();
            loginPage = headerPage.GotoLoginPage();
            loginPage.Login(data[2][0], data[2][1]);
            headerPage.Validate().LoginName("Test Test");
        }