/** * 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); }
/// <summary> /// Initializes a new instance of the <see cref="FilterCustomers"/> class. /// </summary> /// <param name="title">The scenario title.</param> /// <param name="customerSearchField">The search field.</param> /// <param name="context">The scenario context.</param> public FilterCustomers(string title, CustomerSearchField customerSearchField, IScenarioContext context) : base(title, context) { this.customerSearchField = customerSearchField; }