You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 21, 2019. It is now read-only.
@When("^I search for \"([^\"]*)\"$")
public void search(String query) {
WebElement searchField = facade.getBrowser().findElement(By.name("q"));
searchField.sendKeys(query);
// WebDriver will find the containing form for us from the searchField element
searchField.submit();
}
When(~"I search for \"(.*)\"") { String query ->
searchField = browser.findElement(By.name("q"))
searchField.sendKeys(query)
// WebDriver will find the containing form for us from the searchField element
searchField.submit()
}