Skip to content

Commit

Permalink
Merge pull request webdriverio#62 from bjnortier/windowHandle-position
Browse files Browse the repository at this point in the history
Add windowHandlePosition to protocol
  • Loading branch information
camme committed May 14, 2013
2 parents 9185809 + 9a967ad commit d33d633
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/protocol/windowHandlePosition.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
exports.command = function (opts, callback) {

var requestOptions = {
path:"/session/:sessionId/window/" + (opts.name || "current") + "/position",
method:"POST"
};

this.requestHandler.create(requestOptions,{x:opts.x,y:opts.y},callback);

};

0 comments on commit d33d633

Please sign in to comment.