Skip to content

Commit 5bcb3fd

Browse files
committed
Add demo_mode highlights to assert_no_js_errors() on Chrome
1 parent 14d20ba commit 5bcb3fd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1869,6 +1869,9 @@ def assert_no_js_errors(self):
18691869
current_url = self.get_current_url()
18701870
raise Exception(
18711871
"JavaScript errors found on %s => %s" % (current_url, errors))
1872+
if self.demo_mode and self.browser == 'chrome':
1873+
messenger_post = ("ASSERT NO JS ERRORS")
1874+
self.__highlight_with_assert_success(messenger_post, "html")
18721875

18731876
def get_google_auth_password(self, totp_key=None):
18741877
""" Returns a time-based one-time password based on the

0 commit comments

Comments
 (0)