public void Run(GivenWhenWebDriverFacade w) { //type in the term to the search field. w.ITypeInAnElement(By.XPath("//input[@name='q']"), term + Keys.Enter); w.IClickOnAnElement(By.XPath("//button[@type='submit']")); //wait for the search result list to appear. w.IWaitForAnElementToAppear(By.CssSelector(".srg")); }
public void Run(GivenWhenWebDriverFacade g) { g.IAmOnPage("https://www.google.com"); g.ICanSeeAnElement(By.XPath("//input[@name='q']")); }