Skip to content

Get Element Information (web)

Function Description

TIP

Get the text content, source code, attribute value, and position of elements in the web page

Get Element Information (web)

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

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

  • OperationInteger: Web Element Information

  • Intelligently Identify and Supplement Address Prefixes (http:// or https://)Boolean: Intelligently Identify and Supplement Address Prefixes

  • Attribute Namestring: The attribute name of the web element

  • Relative ToInteger: Relative position

Command Output

  • Save Element Information Tostring: Save the obtained web element information

Advanced

  • Convert to DPI Corresponding to 96Boolean: Whether to convert the border attributes to device-independent units

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

  • Wait for Element to Exist (Milliseconds)Integer: Timeout period for waiting for the target element 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