Skip to content

Instantly share code, notes, and snippets.

@PierreCavalet
Created February 23, 2019 15:08
Show Gist options
  • Save PierreCavalet/ebe73703f5a710c2752f9f7bc8906293 to your computer and use it in GitHub Desktop.
Save PierreCavalet/ebe73703f5a710c2752f9f7bc8906293 to your computer and use it in GitHub Desktop.
Use the configuration file
module.exports = {
'Demo test': function (browser) {
browser
.url(browser.launch_url)
.waitForElementVisible('[data-nw=name-input]')
.setValue('[data-nw=name-input]', 'Pierre')
.weirdPause(browser.globals.timeToWait)
.assert.containsText('[data-nw=welcome-message]', 'Welcome Pierre !')
.end()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment