Ejemplo n.º 1
0
        public void AddProductInCartAsAdmin()
        {
            Driver.Navigate().GoToUrl("http://demosite.casqad.org/");
            HomePage homePage = new HomePage(Driver);

            homePage.GoToAuthentication();
            Thread.Sleep(1000);
            LoginPage loginPage = new LoginPage(Driver);

            loginPage.AuthenticateUser("*****@*****.**", "password123");
            Thread.Sleep(1000);
            ProductPage productPage = new ProductPage(Driver);

            productPage.AddProductInCart();
            loginPage.VerifyElementIsDisplayed(homePage.ComandaAcumButton);
        }
Ejemplo n.º 2
0
        public void AddProductInCartAsUser()
        {
            Driver.Navigate().GoToUrl("http://demosite.casqad.org/");
            HomePage homePage = new HomePage(Driver);

            homePage.GoToAuthentication();
            Thread.Sleep(1000);
            LoginPage loginPage = new LoginPage(Driver);

            loginPage.AuthenticateUser("*****@*****.**", "!123John");
            Thread.Sleep(1000);
            ProductPage productPage = new ProductPage(Driver);

            productPage.AddProductInCart();
            loginPage.VerifyElementIsDisplayed(homePage.ComandaAcumButton);
        }