Beispiel #1
0
        public static void SubmitGoogleSearchTerms(IWebDriver driver)
        {
            IWebElement         element    = GoogleHomePage.GoogleSearchElements(driver, "GoogleSearchButton");
            IJavaScriptExecutor jsExecutor = (IJavaScriptExecutor)driver;

            jsExecutor.ExecuteScript("arguments[0].click();", element);
        }
Beispiel #2
0
 public static void EnterGoogleSearchTerms(IWebDriver driver, string searchTerms)
 {
     GoogleHomePage.GoogleSearchElements(driver, "GoogleSearchBar").SendKeys(searchTerms);
 }