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

User should be able to access JavaScript errors raised by the browser during tests execution #1296

Closed
Flaburgan opened this issue Aug 31, 2018 · 2 comments

Comments

@Flaburgan
Copy link

As a developer writing tests,
I want my tests to fail if there are any JavaScript errors thrown during my tests execution.

I don't know if what we want here is to be able to access all the output of the browser console or to give a way for the browser to warn that some errors were encountered. In any case, the developer has to have a way to know errors happened.

@Flaburgan
Copy link
Author

Probably linked to #406

@andreastt
Copy link
Member

It is my understanding that WebDriver immediately returns with a javascript error when an injected script throws an error. For other errors that happen at runtime, these do not affect the user’s ability to use the browser, which is what WebDriver tries to emulate.

I would probably say that this is a duplicate of #406.

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

2 participants