Find Element
AutomatR.Web.FindElement
The "Find Element" activity in AutomatR's Web Activities category is designed to locate a specified UI element on the screen and return it as a UiElement variable. This activity is useful for interacting with specific elements on a web page during automation processes.
Properties
Name | Description |
---|---|
Input | |
Web Selector | Select the web element (e.g., a button) to indicate the element on the web using the selector window. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. String variables containing the desired display name. |
Optional | |
Timeout | Enter the time in seconds (e.g., 5 seconds) for the activity to be executed before throwing an exception. Default timeout is used if not specified. |
Delay | Enter the wait time in seconds (e.g., 5 seconds) before starting the activity. Useful for handling synchronization issues. |
Output | |
Result | Returns the found UI element selector and can be used as input to other activities. Variable of type Selector. |
How to use:
- Drag and drop the "Find Element" activity onto the workflow.
- Use the "Web Selector" property to indicate the web element (e.g., button) you want to locate using the selector window.
- Optionally, configure the "Timeout" and "Delay" properties based on your requirements.
- Execute the workflow to find the specified UI element on the web page.
Example: Consider an example where the "Find Element" activity is used to locate a "Submit" button on a web page:
Find Element:
Web Selector: <your_selector_here>
Timeout: 10
Delay: 2
Result: foundElement
In this example, the activity searches for the specified UI element using the provided selector. The found element's selector is stored in the variable "foundElement" for further use in the workflow.