Enhancing UC Opening Speed #2536
-
Before asking my question, I'd like to congratulate you on your work with Undetected Chromedriver (UC), Michael. It has proven to be much more stealthy than the UC from Ultrafunk Amsterdam. My question is: Chrome, when used with SeleniumBase, takes about 3 seconds to open, whereas Undetected Chromedriver opens in 0.5 seconds. Is there any way to speed up the opening process? I can only open one window at a time using UC due to conflicts, so I'm using threading.Lock, and this significantly impacts the use of multiple windows. Is there any way to disable all seleniumbase features except UC and make it open faster? Or determine the port so there is no conflict and you can open several windows simultaneously? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 7 replies
-
Hello! You'll find your answer in the driver.uc_open(url)
driver.uc_open_with_tab(url)
driver.uc_open_with_reconnect(url, reconnect_time=None)
driver.reconnect(timeout)
driver.uc_click(selector)
driver.uc_switch_to_frame(frame) Use If you want to open a webpage with no delay at all while using UC Mode, then use For multithreading, use the |
Beta Was this translation helpful? Give feedback.
-
I am referring that there is this delay in opening the browser (chrome.exe process), with seleniumbase, opening becomes slow |
Beta Was this translation helpful? Give feedback.
-
Even without seleniumbase's UC mode and with the chrome driver already installed, it usually takes 4x longer than undetected_chromedriver, some initial check is generating a lot of extra time to open the browser process with chromedriver |
Beta Was this translation helpful? Give feedback.
-
Does the interference problem have to do with using port 9222? Because it seems to be a difference between UC mode and undetected_chromedriver. And what is the difference between being undetectable between the two? The difference is that Seleniumbase's UC mode handles the created profile? |
Beta Was this translation helpful? Give feedback.
Hello! You'll find your answer in the
driver
-specific methods added during UC Mode:Use
driver.uc_open_with_reconnect(url, reconnect_time)
with a shortreconnect_time
, eg.0.5
seconds. It's set to around 3 seconds so that there's enough time to get past a Cloudflare verification check before Selenium reconnects to the browser, which makes it detectable.If you want to open a webpage with no delay at all while using UC Mode, then use
driver.default_get(url)
. That will make you detectable, but it might b…