Skip to content

Commit

Permalink
refactor(client-commands): add 'maximizeWindow' command
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlinse committed Aug 17, 2014
1 parent fed3830 commit d30f004
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/selenium/client-commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@ module.exports = function(client) {
});
},

maximizeWindow: function(callback) {
var self = this;
return this.windowMaximize('current', function(result) {
if (typeof callback === 'function') {
callback.call(self, result);
}
});
},

/**
* Take a screenshot of the current page and saves it as the given filename.
*
Expand Down

0 comments on commit d30f004

Please sign in to comment.