Skip to content

implemented highlight_on_failure #4150

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

Snooz82
Copy link
Member

@Snooz82 Snooz82 commented Apr 3, 2025

With this it is possible to automatically highlight the selector that caused a failure.
Of course only if the element is there.

This has to be enabled by the init argument highlight_on_failure or by Set Highlight On Failure keyword.

If active, during an error, so when the run_on_failure keyword is active, the robot variable ${ROBOT_FRAMEWORK_BROWSER_FAILING_SELECTOR} will contain the failed selector.

So it could also be used for other keywords, like selector healing or so.
@manykarim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant