Created
October 4, 2016 23:39
-
-
Save eperedo/3ad08860d2ea6406927f424b73b9753f to your computer and use it in GitHub Desktop.
Nightwatch testing
This file contains 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
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