SeleniumBase/examples/test_detect_404s.py

10 lines
293 B
Python

from seleniumbase import BaseCase
BaseCase.main(__name__, __file__)
class BrokenLinkTests(BaseCase):
def test_link_checking(self):
self.open("https://seleniumbase.io/other/broken_page.html")
print("\n(This test should fail)")
self.assert_no_404_errors()