Skip to content

Commit

Permalink
documentation: nodejs example (#898)
Browse files Browse the repository at this point in the history
  • Loading branch information
João Guilherme Farias Duda authored and charlierudolph committed Aug 11, 2017
1 parent bc40995 commit 7d31882
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/nodejs_example.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@
return this.driver.get('https://github.com/cucumber/cucumber-js/tree/master');
});
When('I click on {stringInDoubleQuotes}', function (text) {
When('I click on {string}', function (text) {
return this.driver.findElement({linkText: text}).then(function(element) {
return element.click();
});
});
Then('I should see {stringInDoubleQuotes}', function (text) {
Then('I should see {string}', function (text) {
var xpath = "//*[contains(text(),'" + text + "')]";
var condition = seleniumWebdriver.until.elementLocated({xpath: xpath});
return this.driver.wait(condition, 5000);
Expand Down

0 comments on commit 7d31882

Please sign in to comment.