Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MykolaGolubyev/9aa14a2b9279bd2c929b7e329c17b79f to your computer and use it in GitHub Desktop.
Save MykolaGolubyev/9aa14a2b9279bd2c929b7e329c17b79f to your computer and use it in GitHub Desktop.
package pages
import static org.testingisdocumenting.webtau.WebTauDsl.*
class SearchPage {
def searchBox = $('#search-box')
def numberOfResults = $('#results .result').count
def submit(query) {
browser.open("/search")
searchBox.setValue(query)
searchBox.sendKeys("\n")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment