Skip to content

Commit

Permalink
Merge pull request #1037 from tenorok/patch-1
Browse files Browse the repository at this point in the history
Fixed a typo in doc of getLocation.
  • Loading branch information
christian-bromann committed Jan 18, 2016
2 parents 1de8d57 + 4c2a800 commit 596b877
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/commands/getLocation.js
Expand Up @@ -7,13 +7,13 @@
:getLocation.js
client
.url('http://github.com')
.getLocation('.header-logo-wordmark').then(location) {
.getLocation('.header-logo-wordmark').then(function(location) {
console.log(location); // outputs: { x: 100, y: 200 }
})
.getLocation('.header-logo-wordmark', 'x').then(location) {
.getLocation('.header-logo-wordmark', 'x').then(function(location) {
console.log(location); // outputs: 100
})
.getLocation('.header-logo-wordmark', 'y').then(location) {
.getLocation('.header-logo-wordmark', 'y').then(function(location) {
console.log(location); // outputs: 200
});
* </example>
Expand Down Expand Up @@ -68,4 +68,4 @@ module.exports = function getLocation (selector, prop) {
})
.catch(staleElementRetry.bind(this, 'getLocation', arguments));

};
};

0 comments on commit 596b877

Please sign in to comment.