public void PerformSearch(string textToSearch) { var searchBox = SeleniumTestDriver.FindById("s"); var searchButton = SeleniumTestDriver.FindByXPath("//input[@id='s']/following-sibling::input"); SeleniumTestDriver.TypeText(searchBox, textToSearch); searchButton.Click(); }
public virtual void SearchForProduct(string productName) { SeleniumTestDriver.TypeText(FinderStrategy.Id, "search", productName); SeleniumTestDriver.FindByIdClick("searchButton"); }