Skip to content

inject a script/fixture at the end of every page load #1003

Answered by mdmintz
webmoskal asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @webmoskal, --check-js also detects broken links, and it does it in a way that's must faster than self.assert_to_404_errors(). That's why it wasn't implemented in the same way, but more for specific pages within tests to speed things up. Here's a sample output from using --check-js on https://seleniumbase.io/other/broken_page.html:

Exception: JavaScript errors found on https://seleniumbase.io/other/broken_page.html => [
{'level': 'SEVERE', 'message': 'https://seleniumbase.io/broken_links/bad_image_1.png - Failed to load resource: the server responded with a status of 404 ()', 'source': 'network', 'timestamp': 1633537464418},
{'level': 'SEVERE', 'message': 'https://seleniumbase.io/broke…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by mdmintz
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants