windowHandleSize
Protocol binding to get or change the size of the browser.
Usage
1 | browser.windowHandleSize([windowHandle][,dimension]); |
Parameters
Param | Type | Details |
---|---|---|
windowHandle optional |
String | the window to receive/change the size |
dimension optional |
Object | the new size of the window |
Example
1 | it('should get or set window position', function () { |
Returns
- <Object>: the size of the window (
{width: number, height: number}
)