Highlight Element
Browser NodeVisually highlight elements on the page for debugging
Overview
The Highlight Element node visually marks elements on a web page. This is extremely useful for debugging - you can see exactly which element your selector is targeting, verify that the right element is found, and document automation steps.
SelectorThe element to highlight. Use the Selector Picker to select visually.
#submit-button, .product-card, getByRole('button')PermanentWhen ON, uses Playwright's native highlight with selector tooltip. When OFF, allows custom colors with timed duration. On a Cloud Browser the node always draws a timed outline using Border Color and Duration.
trueBorder ColorHighlight color (only when Permanent is OFF). Choose any color for the outline.
#ff0000Duration (ms)How long to show the highlight in milliseconds (only when Permanent is OFF)
2000Highlight Modes
Uses Playwright's built-in highlight() method. This shows:
- A colored outline around the element
- A tooltip showing the selector used
- Stays visible until the page navigates or closes
Best for debugging and verifying selectors during development.
Uses custom CSS styling for more control:
- Choose any color for the highlight
- Set a specific duration (then it fades away)
- No selector tooltip - cleaner for screenshots
- Adds a subtle glow effect around the element
Best for documentation, screenshots, and user-visible feedback.
Usage Examples
getByRole("button", { name: "Submit" })The element will be highlighted with a tooltip showing the selector. Verify it's the correct button before adding a Click node.
#checkout-buttonWorkflow: Highlight → Screenshot → Continue. Creates documentation showing exactly which element the automation interacts with.
Add highlights before each action:
- Highlight email field (blue) → Fill email
- Highlight password field (blue) → Fill password
- Highlight submit button (green) → Click
Great for demos or when watching automation run in visible mode.
Best Practices
Use Permanent Mode for Debugging
Combine with Screenshots
Remove in Production
Troubleshooting
Element Not Found
If the highlight fails, the selector doesn't match any element. Check your selector or use the Selector Picker to generate a new one.
Highlight Not Visible
The element might be off-screen. Add a Scroll to Element node before highlighting, or check if the element is hidden behind other elements.