示例#1
0
        public void RegisterFailed()
        {
            // Navigate to test page
            landingPage.NavigateTo();
            landingPage.InitElements();
            landingPage.Click_RegisterPopupButton();

            var registerPage = new RegisterPageModel(driver);

            registerPage.NavigateTo();
            registerPage.InitElements();

            // Do something
            registerPage.EnterRegisterCredentials("Fname", "", "*****@*****.**", "Password12345");
            registerPage.Click_CreateAccountButton();

            // Assert something
            Assert.True(registerPage.AnyRegistrationErrors());
        }
示例#2
0
        public void RegisterSuccessful()
        {
            // Navigate to test page
            landingPage.NavigateTo();
            landingPage.InitElements();
            landingPage.Click_RegisterPopupButton();

            var registerPage = new RegisterPageModel(driver);

            registerPage.NavigateTo();
            registerPage.InitElements();

            // Do something
            registerPage.EnterRegisterCredentials("Fname", "Lname", "*****@*****.**", "Password12345#");
            registerPage.Click_CreateAccountButton();

            // Assert something
            Assert.Empty(registerPage.GetValidationErrors());
        }