Add a "breakpoint"
option for reconnecting in UC Mode
#2385
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add a
"breakpoint"
option for reconnecting in UC Mode--> This resolves Add a
"breakpoint"
option for thereconnect_time
/timeout
of UC Mode methods. #2384Other unrelated changes:
More details:
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 Pythonbreakpoint()
while the driver is disconnected from the browser. This will allow the user to perform manual actions (until typingc
and pressing ENTER to continue from the breakpoint).Here are those existing methods: (Use
self.driver
forBaseCase
formats. Usesb.driver
forSB()
formats):With this change, 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 (usingc
+ ENTER):Examples that should work once this ticket is completed: