Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added window resizing call

  • Loading branch information...
commit b73344d4c9c1723095f315f6d6733873aa54d24a 1 parent fbf036b
Sakari Jokinen authored
Showing with 23 additions and 0 deletions.
  1. +23 −0 node_modules/webdriverjs/lib/protocol/windowHandleSize.js
View
23 node_modules/webdriverjs/lib/protocol/windowHandleSize.js
@@ -0,0 +1,23 @@
+var http = require("http");
+
+exports.command = function(opts, callback)
+{
+
+ var commandOptions = {
+ path: "/session/:sessionId/window/" +
+ (opts.name || "current") +
+ "/size",
+ method: "POST"
+ }
+
+ var data = {
+ width: opts.width,
+ height: opts.height
+ };
+
+ this.executeProtocolCommand(
+ commandOptions,
+ this.proxyResponse(callback),
+ data
+ );
+};

2 comments on commit b73344d

@arezafar

Are there any plans to promote this change for inclusion in the npm package?

@christian-bromann

Yes!

I'm currently working on v0.7 in my fork of webdriverjs with new features/solved issues and more documentation. When I'll have finished this, I'll push that into this repo and talk with @Camme to publish a new NPM version.

Please sign in to comment.
Something went wrong with that request. Please try again.