Skip to main content

Highlight

AutomatR.Windows.Activities.Highlight

The "Highlight" activity in AutomatR for Windows UI Automation visually highlights a specified UI element on the application. This activity is useful for debugging and visually identifying elements during the automation workflow.

Properties

NameDescription
Input
Windows SelectorA string defining the UI element to highlight. You can use the "Windows Selector" property or the "Windows Element" property to specify the UI element.
Windows ElementSelect the browse button to indicate the element on the app with the help of the Window selector window. You can use this property instead of the "Windows Selector."
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) for the activity to be executed before throwing an exception. If not provided, the default timeout is used (e.g., 5 seconds).
DelayEnter the wait time (in seconds) before starting the activity. This can be useful for handling synchronization issues. Default is 0 seconds.

How to use:

  1. Drag and drop the "Highlight" activity onto the workflow.
  2. Configure the properties by either providing the Windows Selector or selecting the Windows Element with the help of the Window selector window.
  3. Optionally, set the timeout to control the maximum time for the activity to be executed before throwing an exception.
  4. Optionally, set the delay to wait before starting the highlight activity.
  5. Execute the workflow to visually highlight the specified UI element on the application.

Example: Consider an example where the "Highlight" activity is used to visually highlight a button on a Windows application:

Highlight:
Display Name: "Highlight Submit Button"
Windows Selector: "Button[name='SubmitButton']"
Timeout: 10

In this example, the activity visually highlights the UI element identified by the Windows Selector "Button[name='SubmitButton']" with a timeout of 10 seconds.