activities
latest
false
UiPath logo, featuring letters U and I in white
UI Automation Activities
Last updated Oct 28, 2024

Highlight

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.

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.

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?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.