nightwatch
Version:
Easy to use Node.js based end-to-end testing solution for web applications using the W3C WebDriver API.
16 lines (13 loc) • 491 B
JavaScript
describe('duckduckgo example', function() {
this.tags = ['end-to-end'];
it('Search Nightwatch.js and check results', function(browser) {
browser
.navigateTo('https://duckduckgo.com')
.waitForElementVisible('body')
.assert.visible('input[name="q"]')
.sendKeys('input[name="q"]', ['Nightwatch.js'])
.assert.visible('button[type=submit]')
.click('button[type=submit]')
.assert.textContains('.react-results--main', 'Nightwatch.js');
});
});