RectangleSize method

Class: RectangleSizePlatform: NightwatchLanguage: JavaScript SDK:

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

Syntax

let obj = new RectangleSize(size);

let obj = new RectangleSize(width, height);

Parameters

size
Type:RectangleSizePlain
The dimensions of the rectangle.
width
Type:number
The width of the rectangle in pixels.
height
Type:number
The height of the rectangle in pixels.

Return value

Type: RectangleSize