Skip to content

Commit

Permalink
adding $.fn.text()
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Breed committed Sep 25, 2013
1 parent 18fc72d commit e1b87a8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ module.exports = function(browser){
.then(function(elem){
return elem.isVisible();
});
},

text: function(){
return this.get()
.then(function(elem){
return elem.text();
});
}

};
Expand Down

0 comments on commit e1b87a8

Please sign in to comment.