Skip to content

Commit

Permalink
docs(client-commands): fix docs for .getTitle()
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlinse committed Aug 19, 2014
1 parent 54195ef commit 7b6b02d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/selenium/client-commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,9 @@ module.exports = function(client) {
*
* ```
* this.demoTest = function (browser) {
* browser.getTitle(function(result) {
* this.assert.equal(typeof result, 'object');
* this.assert.equal(result.status, 0);
* this.assert.equal(result.value, 'Nightwatch.js');
* browser.getTitle(function(title) {
* this.assert.equal(typeof title, 'string');
* this.assert.equal(title, 'Nightwatch.js');
* });
* };
* ```
Expand Down

0 comments on commit 7b6b02d

Please sign in to comment.