Skip to content
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

[feature request] pass more information back in error scenarios #1352

Open
godserahul1986 opened this issue Mar 15, 2023 · 0 comments
Open

Comments

@godserahul1986
Copy link

godserahul1986 commented Mar 15, 2023

Any strong objections to passing back the target along with these messages?

Use case: In case there are multiple clicks in a test, having this extra information makes it easier to find out which test selector failed. This can be also applied to other helpers.

throw new Error(`Can not \`click\` disabled ${element}`);

`Element not found when calling \`click('${target}')\`.`

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

No branches or pull requests

1 participant