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"); }
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"); }
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; }