How do I resize a WebDriverJS browser window?
After more than a week of confused searching through the api docs and google, the answer was actually lying inside of the tests folder of the selenium-webdriver tests node module!!
driver.manage().window().setSize(x, y);
I don't know how selenium-webdriver works so I can't help you there but just in case you are interested, here is how it works with WebdriverJS:
var webdriverjs = require('webdriverjs');var options = { desiredCapabilities: { browserName: 'chrome' }};webdriverjs .remote(options) .init() .windowHandleSize({width:1024,height:768}) .url('http://www.google.com') .title(function(err, res) { console.log('Title was: ' + res.value); }) .end();