public void CreateNewUserAndActivateIt()
        {
            LoginPage login = new LoginPage(this.driver);

            login.NavigateToLoginPage();
            login.LoadComplete(10);
            login.AcceptCookies();
            login.InputUserNameAndPassword(AdminUser, AdminPassword);
            login.TapOnLoginBtn();
            HomePage homepage = new HomePage(this.driver);

            homepage.LoadComplete(5);
            homepage.OpenAdminMenu();
            AdminMenu adminMenu = new AdminMenu(this.driver);

            adminMenu.ClickOnAdminMenuOption("Account Management");
            AccountManagementPage accManagement = new AccountManagementPage(this.driver);

            accManagement.LoadComplete(2);
            accManagement.SearchFor("default");
            accManagement.SelectSearchCriteriaUserName();
            accManagement.ClickOnSearchButton();
            accManagement.ClickOnManageCustomer();
            accManagement.OpenCreateUserForm();
        }
Example #2
0
        public void UserLoginSuccessfull()
        {
            LoginPage loginPage = new LoginPage(driver);

            loginPage.NavigateToLoginPage();
            loginPage.LoadComplete(1);
            loginPage.AcceptCookies();
            loginPage.InputUserNameAndPassword(UserName, Password);
            loginPage.TapOnLoginBtn();
        }
Example #3
0
        public void CheckErrorMessageForIncorrectUserName()
        {
            LoginPage loginPage = new LoginPage(driver);

            loginPage.NavigateToLoginPage();
            loginPage.LoadComplete(5);
            loginPage.AcceptCookies();
            loginPage.InputUserNameAndPassword(IncorrectUserName, Password);
            loginPage.TapOnLoginBtn();
            Assert.IsTrue(loginPage.CheckErrorMessage(ErrorMessageForIncorrectUserPassword));
        }
Example #4
0
        public void CheckErrorMessageForEmptyStates()
        {
            LoginPage loginPage = new LoginPage(driver);

            loginPage.NavigateToLoginPage();
            loginPage.LoadComplete(5);
            loginPage.AcceptCookies();
            loginPage.InputUserNameAndPassword(string.Empty, string.Empty);
            loginPage.TapOnLoginBtn();
            Assert.IsTrue(loginPage.CheckErrorMessage(ErrorMessageForEmptyStatesUser));
            Assert.IsTrue(loginPage.CheckErrorMessage(ErrorMessageForEmptyStatesPassword));
        }