Need help transferring Selenium code to SeleniumBase #2706
-
Hi there, I'm currently trying to adapt the following code from Selenium to SeleniumBase:
I've been struggling to make it work with SeleniumBase, specifically with undetected mode enabled. Could you please help me figure out what adjustments I need to make? Thanks a lot! I've tried using this command with SeleniumBase, but it doesn't seem to be working:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The debugger address and remote debugging port are already set by UC Mode, so you can't configure that. All you need is: from seleniumbase import SB
with SB(uc=True) as sb:
sb.driver.uc_open_with_reconnect("URL") or from seleniumbase import Driver
driver = Driver(uc=True)
driver.uc_open_with_reconnect("URL")
# ...
driver.quit() |
Beta Was this translation helpful? Give feedback.
-
Fixed checked and the debugging address is 0.0.0.0 by default After launching the profile, getting the port, this will work: Thanks again for your help! |
Beta Was this translation helpful? Give feedback.
The debugger address and remote debugging port are already set by UC Mode, so you can't configure that.
The driver for UC Mode must be
uc_driver
/uc_driver.exe
, and that is already set, so you can't configure that either.All you need is:
or