Beispiel #1
0
        public void LoginReturningCustomer()
        {
            //click login for returning customer
            PropertiesCollection.Driver.FindElement(By.ClassName("ico-login"));
            System.Threading.Thread.Sleep(5000);
            WelcomePage welcome = new WelcomePage();

            welcome.Login("*****@*****.**", "@nuK1978");
            Console.WriteLine("Login done");
        }
Beispiel #2
0
        public void Checkout()
        {
            WelcomePage welcome = new WelcomePage();

            StorePage store = welcome.Login("*****@*****.**", "@nuK1978");

            Console.WriteLine("Login done");
            Console.WriteLine("add product to cart");
            Checkout shoppingCart = store.ShopProduct();

            shoppingCart.ClickCheckout();
            Console.WriteLine("Click checkout");
        }
Beispiel #3
0
        public void ShopItem()
        {
            WelcomePage welcome = new WelcomePage();

            StorePage shop = welcome.Login("*****@*****.**", "@nuK1978");

            Console.WriteLine("Login done");
            Console.WriteLine("add product to cart");
            shop.ShopProduct();


            //IWebElement AddCart2;
        }