Last active
May 2, 2020 15:54
-
-
Save MykolaGolubyev/9aa14a2b9279bd2c929b7e329c17b79f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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