Skip to content

Commit 2e2a429

Browse files
committed
Add Demo Mode notifications for self.assert_no_404_errors()
1 parent d31356e commit 2e2a429

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
@@ -1676,6 +1676,10 @@ def assert_no_404_errors(self, multithreaded=True):
16761676
else:
16771677
for link in links:
16781678
self.assert_link_status_code_is_not_404(link)
1679+
if self.demo_mode:
1680+
messenger_post = ("ASSERT NO 404 ERRORS")
1681+
js_utils.post_messenger_success_message(
1682+
self.driver, messenger_post, self.message_duration)
16791683

16801684
def print_unique_links_with_status_codes(self):
16811685
""" Finds all unique links in the html of the page source

0 commit comments

Comments
 (0)