RectangleSize method

Class: RectangleSizePlatform: WebdriverIO 5Language: JavaScript SDK:

A constructor that provides several ways to provide the values for the rectangle width and height.

Syntax


let obj = new RectangleSize(rectangleSize);

let obj = new RectangleSize(object);

let obj = new RectangleSize(width, height);

Parameters

rectangleSize
Type:<a class ='link' href='/Content/api/eyes-sdk/index-gen/class-rectanglesize-webdriverio_sdk5-javascript.htm'>RectangleSize</a>
Another RectangleSize object instance to be cloned.
object
Type:{width:number,height:number}
An object of the form {width:number,height:number}.
width
Type:number
The width of the rectangle in pixels.
height
Type:number
The height of the rectangle in pixels.

Return value

Type: <a class ='link' href='/Content/api/eyes-sdk/index-gen/class-rectanglesize-webdriverio_sdk5-javascript.htm'>RectangleSize</a>