webdriverio/webdriverio — pull request #341 by MoLLIa (2014-11-06 13:46:48+00:00)
Title: Fixes and tests for Protocol.windowHandlePosition

Current Protocol.windowHandlePosition implementation doesn't work in cases when we don't specify tabid (assuming current window).

Examples:
* client.windowHandlePosition(function(err, res) {
console.log(res.value);
});

expecting: object with x and y cordinates of current window

receiving: TypeError: string is not a function

* client.windowHandlePosition({x: 600, y: 100});

expecting: current window movement to cordinates

receiving: nothing happens

Let me know whether something is wrong.