Skip to content

Commit 70c9501

Browse files
committed
Add self.assert_no_broken_links() to assert no 404 errors
1 parent 5b801da commit 70c9501

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3108,6 +3108,10 @@ def assert_element_not_present(self, selector, by=By.CSS_SELECTOR,
31083108
self.wait_for_element_absent(selector, by=by, timeout=timeout)
31093109
return True
31103110

3111+
def assert_no_broken_links(self, multithreaded=True):
3112+
""" Same as self.assert_no_404_errors() """
3113+
self.assert_no_404_errors(multithreaded=multithreaded)
3114+
31113115
def wait(self, seconds):
31123116
""" Same as self.sleep() - Some JS frameworks use this method name. """
31133117
self.sleep(seconds)

0 commit comments

Comments
 (0)