How to manually disconnect chromedriver before page load, and manually connect it after page loaded? #2315
-
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.
|
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
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.