Ejemplo n.º 1
0
        public void WhenIEnterEmailInCreateNewAccountSection()
        {
            AuthenticationPage signInPage        = new AuthenticationPage();
            CreateAccountPage  createAccountPage = new CreateAccountPage();

            signInPage.EnterEmail();
            signInPage.ClickCreateAccount();
            Wait.Until(condition => condition.FindElement(By.Id("customer_firstname")));
            Assert.IsTrue(createAccountPage.IsVisible());
        }
Ejemplo n.º 2
0
        public void GivenIAmInSignInPage()
        {
            LandingPage        landingPage = new LandingPage();
            AuthenticationPage signInPage  = new AuthenticationPage();

            Driver.Manage().Window.Maximize();
            Driver.Navigate().GoToUrl("http://automationpractice.com/index.php");
            Assert.IsTrue(Driver.Title.ToLower().Contains("my store"));
            Wait.Until(condition => condition.FindElement(By.ClassName("login")));
            landingPage.ClickSignIn();
            Wait.Until(condition => condition.FindElement(By.Id("SubmitCreate")));
            Assert.IsTrue(signInPage.IsVisible());
        }