Skip to content

Need help transferring Selenium code to SeleniumBase #2706

Closed Answered by mdmintz
hardened3348 asked this question in Q&A
Discussion options

You must be logged in to vote

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:

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()

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@hardened3348
Comment options

Answer selected by mdmintz
Comment options

You must be logged in to vote
0 replies
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