Skip to content

Activate CDP Mode automatically from UC Mode whenever calling "open(url)" #4101

@mdmintz

Description

@mdmintz

Activate CDP Mode automatically from UC Mode whenever calling open(url)

In the previous release, (4.44.10), SB activated CDP Mode automatically if proxy auth was involved. Now, it's probably time to do it for all calls of open(url). For one, UC Mode functionality & stealth is already limited compared to CDP Mode. And it'll be more consistent to always activate CDP Mode from UC Mode whenever calling open(url), regardless of whether or not proxy auth is being used..

If CDP Mode is already active when calling open(url), then the browser should just go to the URL without activating CDP Mode again. (It only needs to be activated once.) However, if WebDriver was reconnected after CDP Mode was activated, then it should disconnect WebDriver first before navigating to the URL.

If people still have use cases for UC Mode without CDP Mode, there are several methods that you can still use to open a URL in UC Mode without activating CDP Mode:

  • uc_open_with_reconnect(url)
  • uc_open_with_disconnect(url)
  • driver.uc_open(url)
  • driver.get(url)
  • driver.default_get(url)

We'll find out soon whether or not this change has any side effects.

I expect some people may get confused when they find out that CDP Mode can be activated without explicitly calling activate_cdp_mode().

Metadata

Metadata

Assignees

Labels

UC Mode / CDP ModeUndetected Chromedriver Mode / CDP ModeenhancementMaking things better

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions