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