autoScroll

AI.AIRunSettings. autoScroll

Controls automatic scrolling for AI identification in the current test run. By default, the automatic scrolling is on, and set to scroll down, up to 2 times.

Methods

(static) disable() → {Promise.<void>}

Disables automatic scrolling for AI identification in the current test run.

Returns:

a promise that is fulfilled after the automatic scrolling configuration is updated
Type
Promise.<void>

(static) enable(settingsopt) → {Promise.<void>}

Enables and configures automatic scrolling for AI identification in the current test run.

Parameters:

NameTypeAttributesDescription
settingsobject <optional>
The automatic scrolling configuration to use in the current test run.
Properties
NameTypeAttributesDescription
directionstring <optional>
The direction in which to scroll. Possible values: up, down, right, left. Default value: down
maxScrollsnumber <optional>
The maximum number of times to scroll in search of the object. Default value: 2

Returns:

a promise that is fulfilled after the automatic scrolling configuration is updated
Type
Promise.<void>