/** * Method to search for a Customer by Id. Switches to customer search field and enters customer id. */ public new SettingsPage SearchCustomer(string customerId) { WebDriverWait Wait = new WebDriverWait(driver, TimeSpan.FromSeconds(10)); Wait.Until(d => CustomerSearchField.Displayed); CustomerSearchField.Clear(); CustomerSearchField.SendKeys(customerId); Wait.Until(d => CustomerIdSearchResults[0].Displayed); return(this); }