Skip to content

Commit

Permalink
Support isDisplayed as isVisible is deprecated as of wd 0.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelcarter committed Jan 29, 2014
1 parent c281727 commit ec6b792
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ browser.init()
return $('#login-form').submit();
})
.then(function(){
return $('.loggedIn').isVisible('loggedIn');
return $('.loggedIn').isDisplayed('loggedIn');
})
.then(function(body){
assert.ok(body);
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = function(browser){
};
}

var wdMethods = ['click', 'isVisible', 'submit', 'text', 'tap'];
var wdMethods = ['click', 'isVisible', 'isDisplayed', 'submit', 'text', 'tap'];

var wdQuery = function( selector ){
if( !(this instanceof wdQuery) ){
Expand Down
6 changes: 3 additions & 3 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ describe('wd-query', function () {
return assert.equal(val, 'webdriver');
})
.then(function(){
return $('body').isVisible();
return $('body').isDisplayed();
})
.then(function(isVisible){
assert.ok(isVisible);
.then(function(isDisplayed){
assert.ok(isDisplayed);
done();
});
});
Expand Down

0 comments on commit ec6b792

Please sign in to comment.