Ejemplo n.º 1
0
        public void Test_Case_2_Verify_Invalid_Email_Address_Error(string browserName)
        {
            Setup(browserName);
            var homePage  = new HomePageObjects(driver);
            var loginPage = new loginPage(driver);

            homePage.clickTheSignInBtn();
            loginPage.enterIncorrectEmailAddressPassword();
            loginPage.clickSignInAndVerifyIfErrorIsDisplayed();
        }
Ejemplo n.º 2
0
        public void Test_Case_5_Automate_End_To_End_Order(string browserName)
        {
            Setup(browserName);

            var homePage  = new HomePageObjects(driver);
            var loginPage = new loginPage(driver);

            homePage.clickTheSignInBtn();
            loginPage.performLogin();
            homePage.hoverOverWomenClothesTab();
        }
Ejemplo n.º 3
0
        public void Test_Case_4_Verify_Error_Messages_For_Incorrect_Values(string browserName)
        {
            Setup(browserName);
            var homePage      = new HomePageObjects(driver);
            var loginPage     = new loginPage(driver);
            var createAccount = new AccountCreationPage(driver);

            homePage.clickTheSignInBtn();
            loginPage.clickEmailAddressFieldAndEnterEmailAddress();
            loginPage.clickCreateAnAccountButton();
            createAccount.enterIncorrectRegistrationDetailsToTriggerErrors();
            createAccount.checkThatTheExpectedErrorsAreDisplayed();
        }
Ejemplo n.º 4
0
        public void Test_Case_3_Verify_Error_Messages_For_Mandatory_Fields(string browserName)
        {
            Setup(browserName);
            var homePage      = new HomePageObjects(driver);
            var loginPage     = new loginPage(driver);
            var createAccount = new AccountCreationPage(driver);

            homePage.clickTheSignInBtn();
            loginPage.clickEmailAddressFieldAndEnterEmailAddress();
            loginPage.clickCreateAnAccountButton();
            createAccount.clearEmailAddressField();
            createAccount.attemptRegistrationWithoutMandatoryFields();
            createAccount.checkThatTheExpectedErrorMessagesHaveDisplayed();
        }
Ejemplo n.º 5
0
        public void Test_Case_1_Automate_Registration(string browserName)
        {
            try
            {
                Setup(browserName);
                var homePage     = new HomePageObjects(driver);
                var loginPage    = new loginPage(driver);
                var registration = new AccountCreationPage(driver);

                homePage.clickTheSignInBtn();
                loginPage.clickEmailAddressFieldAndEnterEmailAddress();
                loginPage.clickCreateAnAccountButton();
                registration.completePersonalInformation();
                registration.completeAddressDetails();
                registration.clickTheRegisterButton();
                registration.checkThatTheUserIsRegistered();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
                var    screenshot = new Screenshots(driver);
                string fileName   = MethodBase.GetCurrentMethod().Name;
            }
        }