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

Get console logs, fail when error logged #8

Open
noahgibbs opened this issue Nov 19, 2023 · 1 comment
Open

Get console logs, fail when error logged #8

noahgibbs opened this issue Nov 19, 2023 · 1 comment

Comments

@noahgibbs
Copy link
Collaborator

Chrome allows just grabbing error logs that have already occurred: https://stackoverflow.com/questions/46278514/capture-browser-console-logs-with-capybara

That's workable. It would also be possible to replace the console.log/console.error etc functions with something that captures them. But it's nice to be able to grab error logs natively because that works with browser stuff that goes around the JS definitions and also works when Scarpe fails to boot properly, so it may not be able to replace the console.log, console.error, etc functions.

@noahgibbs
Copy link
Collaborator Author

Partway there. We can grab error logs now, but we don't yet error on them.

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