Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 public virtual void SearchForProduct(string productName)
 {
     SeleniumTestDriver.TypeText(FinderStrategy.Id, "search", productName);
     SeleniumTestDriver.FindByIdClick("searchButton");
 }