How to manually disconnect chromedriver before page load, and manually connect it after page loaded? #2315
Answered
by
mdmintz
iamumairayub
asked this question in
Q&A
|
driver.uc_open_with_reconnect("https://pixelscan.net/", reconnect_time=60) basically locks our code for 60 seconds. I am looking for something so we disconnect chromedriver first, then load webpage, once its loaded, we reconnect it. I digged through the code but could not create a workable example. |
Answered by
mdmintz
Nov 25, 2023
Replies: 1 comment
|
You can’t disconnect chromedriver from Chrome before issuing the command to load the page because you still need to be connected in order to issue commands to Chrome. While disconnected, you cannot know when a page is done loading, because again, the connection is needed to know that. Therefore, a predetermined time is used for the disconnect/reconnect time, which is customizable. |
0 replies
Answer selected by
mdmintz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can’t disconnect chromedriver from Chrome before issuing the command to load the page because you still need to be connected in order to issue commands to Chrome. While disconnected, you cannot know when a page is done loading, because again, the connection is needed to know that. Therefore, a predetermined time is used for the disconnect/reconnect time, which is customizable.