Skip to main content

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

NameDescription
Input
Web SelectorSelect the web element (e.g., a button) to indicate the element on the web using the selector window.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. String variables containing the desired display name.
Optional
TimeoutEnter 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.
DelayEnter the wait time in seconds (e.g., 5 seconds) before starting the activity. Useful for handling synchronization issues.
Output
ResultReturns the found UI element selector and can be used as input to other activities. Variable of type Selector.

How to use:

  1. Drag and drop the "Find Element" activity onto the workflow.
  2. Use the "Web Selector" property to indicate the web element (e.g., button) you want to locate using the selector window.
  3. Optionally, configure the "Timeout" and "Delay" properties based on your requirements.
  4. 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.