UiPath Documentation
activities
latest
false
UI Automation activities

Highlight

Highlight in the UI Automation coded automation API: visually highlights a specified UI element by surrounding it in a box.

Visually highlights a specified UI element by surrounding it in a box.

This API must be added after Open or Attach.

Definition

Namespace: UiPath.UIAutomationNext.API.Models

Assembly: UiPath.UIAutomationNext.API.Models (in UiPath.UIAutomationNext.API.Models dll)

Overloads

OverloadDescription
Highlight(String, HighlightOptions)Highlights a specified UI element, identified as a string from the Object Repository, along with other customizations.
Highlight(TargetAnchorableModel, HighlightOptions)Highlights a specific UI element, identified as a TargetAnchorableModel, along with other customizations.
Highlight(String, KnownColor, Double)Highlights a specific UI element, identified as a string from the Object Repository, while specifying the color of the highlight and for how long it should be highlighted.

Highlight(String, HighlightOptions)

Highlights a specified UI element, identified as a string from the Object Repository, along with other customizations.

Highlight(
    string target,
    HighlightOptions highlightOptions)
Highlight(
    string target,
    HighlightOptions highlightOptions)

target String: The UI element that you want to highlight, identified as a string from the Object Repository.

highlightOptions: Additional options to customize the highlight action:

* `HighlightTime Double` - The number of seconds for which to highlight the target element. The default value is 2 seconds.
* `Color
  KnownColor` - Choose the color of the box that surrounds the highlighted element. The default value is Gold.
* `HighlightTime Double` - The number of seconds for which to highlight the target element. The default value is 2 seconds.
* `Color
  KnownColor` - Choose the color of the box that surrounds the highlighted element. The default value is Gold.

Highlight(TargetAnchorableModel, HighlightOptions)

Highlights a specific UI element, identified as a TargetAnchorableModel, along with other customizations.

Highlight(
    TargetAnchorableModel target,
    HighlightOptions highlightOptions)
Highlight(
    TargetAnchorableModel target,
    HighlightOptions highlightOptions)

target TargetAnchorableModel: The UI element that you want to highlight, identified as a TargetAnchorableModel object.

highlightOptions: Additional options to customize the highlight action:

* `HighlightTime Double` - The number of seconds for which to highlight the target element. The default value is 2 seconds.
* `Color KnownColor` - Choose the color of the box that surrounds the highlighted element. The default value is
  Gold.
* `HighlightTime Double` - The number of seconds for which to highlight the target element. The default value is 2 seconds.
* `Color KnownColor` - Choose the color of the box that surrounds the highlighted element. The default value is
  Gold.

Highlight(String, KnownColor, Double)

Highlights a specific UI element, identified as a string from the Object Repository, while specifying the color of the highlight and for how long it should be highlighted.

Highlight(
    string target,   
    [KnownColor color],
    [double duration])
Highlight(
    string target,   
    [KnownColor color],
    [double duration])

target String: The UI element that you want to highlight, identified as a string from the Object Repository.

color KnownColor: Choose the color of the box that surrounds the highlighted element. The default value is Gold.

duration Double: The number of seconds for which to highlight the target element. The default value is 2 seconds.

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated