public void resetcheck(string id) { DeleteCustomerLink.Click(); CustomerId.Clear(); CustomerId.SendKeys(id); reset.Click(); }
public void deleteCustomer(string id) { try { DeleteCustomerLink.Click(); CustomerId.Clear(); CustomerId.SendKeys(id); submit.Click(); driver.SwitchTo().Alert().Accept(); } catch (Exception e) { Console.WriteLine(e); TakeScreenshot.takeScreenshotAs(driver, "delete_customer"); } }