Пример #1
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();
        }
Пример #2
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();
        }
Пример #3
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;
            }
        }