SeleniumBase/examples/test_detect_404s.py

10 lines
293 B
Python
Raw Normal View History

2021-04-11 01:25:56 +08:00
from seleniumbase import BaseCase
2023-02-03 13:27:36 +08:00
BaseCase.main(__name__, __file__)
2021-04-11 01:25:56 +08:00
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()