Skip to content

Scroll

This docs was updated at: 2026-02-23

com.paragon.web.Scroll  ยท  Record


Action to scroll the page or a specific element.

Methods

of

public static Scroll of(
      @NonNull String selector, @NonNull ScrollDirection direction, int amount)

Creates a Scroll action.

Parameters

Name Description
selector Query selector for the element to scroll
direction The direction to scroll
amount The amount to scroll in pixels (0-1000)

Returns

A new Scroll instance


down

public static Scroll down(@NonNull String selector, int amount)

Creates a Scroll action that scrolls down.

Parameters

Name Description
selector Query selector for the element to scroll
amount The amount to scroll in pixels

Returns

A new Scroll instance that scrolls down


up

public static Scroll up(@NonNull String selector, int amount)

Creates a Scroll action that scrolls up.

Parameters

Name Description
selector Query selector for the element to scroll
amount The amount to scroll in pixels

Returns

A new Scroll instance that scrolls up


left

public static Scroll left(@NonNull String selector, int amount)

Creates a Scroll action that scrolls left.

Parameters

Name Description
selector Query selector for the element to scroll
amount The amount to scroll in pixels

Returns

A new Scroll instance that scrolls left


public static Scroll right(@NonNull String selector, int amount)

Creates a Scroll action that scrolls right.

Parameters

Name Description
selector Query selector for the element to scroll
amount The amount to scroll in pixels

Returns

A new Scroll instance that scrolls right