Get element object (web)
Function Description
TIP
Locate an element on a webpage using capture, CSS, or XPath methods.
Configuration Item Description
General
Command Input
Webpage object
TBrowser
: Enter a webpage object that has been obtained or created through the 'open webpage' function.Locating method
Integer
: Specify a method to locate an element.Operation target
TTarget
: Select the web element to be operated on.CSS selector
string
: Enter the CSS selector.XPath selector
string
: Enter the XPath selector.Associated parent element
Boolean
: Whether to associate with the parent element.Parent element
TTarget
: Find the target element within the parent element.
Command Output
- Save element object to
TUiElement
: Specify a variable to save the acquired element object.
Advanced
Delay Before (ms)
Integer
: The waiting time before instruction executionWait for element existence (ms)
Integer
: Timeout for waiting for the target element to exist.
Error Handling
Print Error Logs
Boolean
: Whether to print error logs to the "Logs" panel when the command fails. Default is checked.Handling Method
Integer
: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