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