Skip to content

Get Scrollbar Position

Function Description

TIP

Get the current position or bottom position (i.e., scroll length) of the scrollbar in a web page or element

Get Scrollbar Position

Configuration Item Description

General

Command Input

  • Web Page ObjectTBrowser: Input a web page object that has been obtained or created through the 'Open Web Page' function

  • Element ScrollbarBoolean: Get the scrollbar position of the specified element, otherwise the scrollbar of the entire web page

  • Operation TargetTTarget: Select the web element to be operated on

  • No Element Scrollbar, Auto Upward SearchBoolean: No Element Scrollbar, Auto Upward Search

  • ScrollbarInteger: Actual operation scrollbar direction

  • PositionInteger: Current scrollbar position relative to the top, bottom position is the maximum scroll length of the scrollbar

Command Output

  • Save Scrollbar Position ToInteger: Save the obtained scrollbar position

Advanced

  • Delay Before (ms)Integer: The waiting time before instruction execution

  • Wait for Element to Exist (Milliseconds)Integer: Timeout period for waiting for the target scrollbar to exist

Error Handling

  • Print Error LogsBoolean: Whether to print error logs to the "Logs" panel when the command fails. Default is checked.

  • Handling MethodInteger:

    • Terminate Process: If the command fails, terminate the process.

    • Ignore Exception and Continue Execution: If the command fails, ignore the exception and continue the process.

    • Retry This Command: If the command fails, retry the command a specified number of times with a specified interval between retries.

Usage Example

Process logic description:

Common Errors and Handling

None

Frequently Asked Questions

None