Skip to content

Instantly share code, notes, and snippets.

@eperedo
Created October 4, 2016 23:39
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 eperedo/3ad08860d2ea6406927f424b73b9753f to your computer and use it in GitHub Desktop.
Save eperedo/3ad08860d2ea6406927f424b73b9753f to your computer and use it in GitHub Desktop.
Nightwatch testing
browser
.url(`${browser.launch_url}/login`)
.waitForElementVisible('body', 1000)
.setValue('input[type=email]', 'mail@gmail.com')
.setValue('input[type=password]', '123456')
.submitForm('form')
.getTitle(function (title) {
browser.assert.equal(title, 'Home Page');
})
.end();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment