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
const { client } = require('nightwatch-api'); | |
const { Given, Then, When } = require('cucumber'); | |
Given(/^I open Google's search page$/, () => { | |
return client.url('http://google.com').waitForElementVisible('body', 1000); | |
}); | |
Then(/^the title is "([^"]*)"$/, title => { | |
return client.assert.title(title); | |
}); | |
Then(/^the Google search form exists$/, () => { | |
return client.assert.visible('input[name="q"]'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment