public void VerifyLandingPageTitle()
        {
            // Navigate to test page
            landingPage.NavigateTo();

            // Do something

            // Assert something
            Assert.Equal("Home Page - defaultCoreApp", landingPage.Title);
        }
Пример #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());
        }