MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / is_cdp_mode_active

Method is_cdp_mode_active

seleniumbase/core/sb_driver.py:286–292  ·  view source on GitHub ↗

CDP Mode is a special mode within UC Mode. Activated separately. Return True if CDP Mode is loaded in the driver. False otherwise.

(self)

Source from the content-addressed store, hash-verified

284 )
285
286 def is_cdp_mode_active(self):
287 """CDP Mode is a special mode within UC Mode. Activated separately.
288 Return True if CDP Mode is loaded in the driver. False otherwise."""
289 return (
290 hasattr(self.driver, "_is_using_cdp")
291 and self.driver._is_using_cdp
292 )
293
294 def js_click(self, *args, **kwargs):
295 return page_actions.js_click(self.driver, *args, **kwargs)

Callers 1

is_cdp_swap_neededFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected