Skip to main content

RectangleSize class

Provides an object that describes a rectangle. An object of this type is required as a parameter in some methods.

Import statement

from applitools.selenium import RectangleSize

RectangleSize method​

Syntax​

obj = RectangleSize(width, height)

Parameters​

width

Type: int

The width of the rectangle in pixels.

height

Type: int

The height of the rectangle in pixels.

Return value​

Type: None

height property​

Syntax​

obj.height  = value
value = obj.height

Type: int

width property​

Syntax​

obj.width  = value
value = obj.width

Type: int