windowHandlePosition
Protocol bindings to receive or change the position of the browser window.
If the windowHandle
URL parameter is falsy, the currently active window will be considered.
(Not part of the official Webdriver specification).
Usage
1 | browser.windowHandlePosition([windowHandle][,position]); |
Parameters
Param | Type | Details |
---|---|---|
windowHandle optional |
String | the window to receive/change the position |
position optional |
Object | the X and Y coordinates to position the window at, relative to the upper left corner of the screen |
Example
1 | it('should get or set window position', function () { |
Returns
- <Object>: the X and Y coordinates for the window, relative to the upper left corner of the screen (
{x: number, y: number}
)