Skip to main content
Version: 20.8.2

Locator.scroll() method

Signature:

class Locator {
abstract scroll(scrollOptions?: {
scrollTop?: number;
scrollLeft?: number;
signal?: AbortSignal;
}): Promise<void>;
}

Parameters

ParameterTypeDescription
scrollOptions{ scrollTop?: number; scrollLeft?: number; signal?: AbortSignal; }(Optional)

Returns:

Promise<void>