Skip to content

Any way to make Driver.open / Driver.get / Driver.uc_open faster? #2157

Answered by mdmintz
oculunto asked this question in Q&A

You must be logged in to vote

One of the things that SeleniumBase does to avoid detection is to:

  • Disconnect chromedriver temporarily from Chrome before loading websites that try to detect chromedriver.

(It's one of the things listed in #2000)

It's only done when a requests.get() call returns a 403, or similar. If that happens, chromedriver disconnects from the browser as the web page gets loaded, and then reconnects as quickly as possible so that selenium can resume performing actions. The default driver.get() method is modified with this change.

To perform the original driver.get() call (which doesn't have this extra wait), use self.driver.default_get() instead.

To summarize, use self.driver.default_get(URL) when i…

Replies: 1 comment

You must be logged in to vote
0 replies
Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants