Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Night watch Google search JS script
module.exports = {
'NW test on Google' : function (client) {
.waitForElementVisible('body', 1000)
.setValue('input[type=text]', 'Nightwatch JS')
.waitForElementVisible('button[name=btnG]', 1000)
.assert.containsText('ol#rso li:first-child',
'Nightwatch.js | Node.js powered End-to-End testing framework')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment