Skip to main content
Version: 20.7.3

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>