public void CustomerClickMenuButton() { screenshot screens = new screenshot(); MenuButton.Click(); screens.Takescreenshot4("filename"); //CartImg.Click(); //Console.WriteLine("The item that the customer chose is " + ItemName.Text); }
public void ParameterisedLoginData(string username, string password) { screenshot screens = new screenshot(); Username.SendKeys(username); Console.WriteLine("The name of the customer is " + username); Password.SendKeys(password); Console.WriteLine("the password is " + password); screens.Takescreenshot("filename"); screens.Takescreenshot2("filename"); screens.Takescreenshot4("filename"); screens.Takescreenshot9("filename"); Login.Click(); WebDriverWait wait = new WebDriverWait(CommonDriver.driver, TimeSpan.FromSeconds(10)); }