Skip to main content

Highlight

AutomatR.Web.Highlight

The "Highlight" activity in AutomatR's Web Activities category visually highlights a specified UI element on a web page. This can be useful during the development and debugging phases to identify and verify the correct selection of UI elements within the automation workflow.

Properties

NameDescription
Input
ElementAllows you to select the web element using the selector window. Use this property if you want to indicate the web element directly within the activity.
WebElementSpecifies the UI Element variable identified by the "Find Element" or other activities. This allows you to use a previously identified web element in the workflow.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Highlight" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.
TimeoutSpecifies the maximum time (in seconds) to wait for the activity to be executed before throwing an exception. Integer variables containing the timeout duration. The default timeout is set in the Constants.Timeout constant.

How to use:

  1. Drag and drop the "Highlight" activity onto the workflow.
  2. Configure the properties by choosing either the direct web element or providing a UI Element variable.
  3. Optionally, configure the delay and timeout based on your requirements.
  4. Execute the workflow to visually highlight the specified web element on the web page.

Example: Consider an example where the "Highlight" activity is used to visually identify a button on a web page:

Highlight:
Delay: 2
Timeout: 10
Element: Selector forButtonElement

In this example, the activity waits for 2 seconds, has a timeout of 10 seconds, and visually highlights the web element identified by the selector "forButtonElement" on the web page.