UNPKG

nightwatch

Version:

Easy to use Node.js based end-to-end testing solution for web applications using the W3C WebDriver API.

13 lines (11 loc) 448 B
describe('duckduckgo example', function() { it('Search Nightwatch.js and check results', function(browser) { browser .navigateTo('https://duckduckgo.com') .waitForElementVisible('#search_form_input_homepage') .sendKeys('#search_form_input_homepage', ['Nightwatch.js']) .click('#search_button_homepage') .assert.visible('.results--main') .assert.textContains('.results--main', 'Nightwatch.js'); }); });