SeleniumBase icon indicating copy to clipboard operation
SeleniumBase copied to clipboard

Param "expert" mode in sb_manager

Open menbre opened this issue 2 years ago • 1 comments

Hi, there is no expert mod parameter in the sb manager, any other ways to prescribe it?

:param expert: When set to True, "expert" mode is enabled. This adds: --disable-web-security --disable-site-isolation-trials, as well as some scripts and patching useful for debugging. (For example, ensuring shadow-root is always in "open" mode.)

menbre avatar Nov 20 '24 18:11 menbre

The parameter is there:

https://github.com/seleniumbase/SeleniumBase/blob/d8d02cd4740e700ef6ea3b133bbdc9830e728cf4/seleniumbase/undetected/cdp_driver/cdp_util.py#L154

It can be used by the formats that launch CDP directly: (via cdp_driver.cdp_util.start_sync() args). Eg:

https://github.com/seleniumbase/SeleniumBase/blob/master/examples/cdp_mode/raw_cdp.py

https://github.com/seleniumbase/SeleniumBase/blob/d8d02cd4740e700ef6ea3b133bbdc9830e728cf4/examples/cdp_mode/raw_cdp.py#L13

It's not part of SB() Manager directly because using that option makes SB detectable.

mdmintz avatar Nov 20 '24 18:11 mdmintz