We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 723cd81 commit 212a77fCopy full SHA for 212a77f
seleniumbase/fixtures/base_case.py
@@ -309,8 +309,18 @@ def open(self, url):
309
if self.undetectable:
310
self.__uc_frame_layer = 0
311
if self.demo_mode:
312
- if not js_utils.is_jquery_activated(self.driver):
313
- js_utils.add_js_link(self.driver, constants.JQuery.MIN_JS)
+ if (
+ self.driver.current_url.startswith("http")
314
+ or self.driver.current_url.startswith("file")
315
+ or self.driver.current_url.startswith("data")
316
+ ):
317
+ if not js_utils.is_jquery_activated(self.driver):
318
+ try:
319
+ js_utils.add_js_link(
320
+ self.driver, constants.JQuery.MIN_JS
321
+ )
322
+ except Exception:
323
+ pass
324
self.__demo_mode_pause_if_active()
325
326
def get(self, url):
0 commit comments