Skip to content

Add a "breakpoint" option for the reconnect_time / timeout of UC Mode methods. #2384

Closed
@mdmintz

Description

@mdmintz

Add a "breakpoint" option for the reconnect_time / timeout of UC Mode methods.

Currently, some UC Mode methods let you set a custom reconnect_time / timeout (in seconds) to specify how long the driver should be disconnected from Chrome to prevent detection before reconnecting again. The new plan here is to add an option of "breakpoint" for that arg's value. Doing this should drop in a Python breakpoint() while the driver is disconnected from the browser. This will allow the user to perform manual actions (until typing c and pressing ENTER to continue from the breakpoint).

Here are those existing methods: (Use self.driver for BaseCase formats. Use sb.driver for SB() formats):

driver.uc_open_with_reconnect(url, reconnect_time)
# Examples:
driver.uc_open_with_reconnect("https://nowsecure.nl/#relax", reconnect_time=5)
driver.uc_open_with_reconnect("https://nowsecure.nl/#relax", 5)

driver.reconnect(timeout)
# Examples:
driver.reconnect(5)
driver.reconnect(timeout=5)

With this ticket, you'll now be able to set the reconnect_time / timeout to "breakpoint" as a valid option.

Instead of waiting for a set time, the program will run a Python breakpoint() so that the user will be able to continue when ready (using c + ENTER):

Examples that should work once this ticket is completed:

driver.uc_open_with_reconnect("https://nowsecure.nl/#relax", reconnect_time="breakpoint")
driver.uc_open_with_reconnect("https://nowsecure.nl/#relax", "breakpoint")

driver.reconnect(timeout="breakpoint")
driver.reconnect("breakpoint")

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