Skip to main content
Version: Next

Locator.scroll() method

Signature:

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

Parameters

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

Returns:

Promise<void>