Skip to content

Commit 7d98090

Browse files
committed
Update docs / comments
1 parent e77ce76 commit 7d98090

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

examples/cdp_mode/ReadMe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ with SB(uc=True, test=True, locale="en", pls="none") as sb:
364364
sb.cdp.get(url, **kwargs)
365365
sb.cdp.open(url, **kwargs)
366366
sb.cdp.reload(ignore_cache=True, script_to_evaluate_on_load=None)
367-
sb.cdp.refresh()
367+
sb.cdp.refresh(*args, **kwargs)
368368
sb.cdp.get_event_loop()
369369
sb.cdp.add_handler(event, handler)
370370
sb.cdp.find_element(selector, best_match=False, timeout=None)

seleniumbase/core/browser_launcher.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,7 @@ def uc_open_with_reconnect(driver, url, reconnect_time=None):
532532

533533

534534
def uc_open_with_cdp_mode(driver, url=None, **kwargs):
535+
"""Activate CDP Mode with the URL and kwargs."""
535536
import asyncio
536537
from seleniumbase.undetected.cdp_driver import cdp_util
537538

seleniumbase/fixtures/base_case.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4886,6 +4886,7 @@ def deactivate_design_mode(self, url=None):
48864886
self.execute_script(script)
48874887

48884888
def activate_cdp_mode(self, url=None, **kwargs):
4889+
"""Activate CDP Mode with the URL and kwargs."""
48894890
if hasattr(self.driver, "_is_using_uc") and self.driver._is_using_uc:
48904891
if self.__is_cdp_swap_needed():
48914892
return # CDP Mode is already active
@@ -4901,6 +4902,8 @@ def activate_cdp_mode(self, url=None, **kwargs):
49014902
self.cdp = self.driver.cdp
49024903

49034904
def activate_recorder(self):
4905+
"""Activate Recorder Mode on the current tab/window.
4906+
For persistent Recorder Mode, use the extension instead."""
49044907
from seleniumbase.js_code.recorder_js import recorder_js
49054908

49064909
if not self.is_chromium():

0 commit comments

Comments
 (0)