Skip to content

default_get for UC mode #2392

Answered by mdmintz
Kamran-ov asked this question in Q&A
Discussion options

You must be logged in to vote

It's still there.
Use sb.driver.default_get(URL) when you want to open a URL without the special bot-detection-evasion code.
Useful if going back to the same site where you already bypassed detection before in that same browser session.
(Then there's no delay for the driver disconnecting from Chrome, pausing for a bit, and reconnecting to Chrome.)

from seleniumbase import SB

with SB(uc=True, test=True) as sb:
    sb.driver.uc_open_with_tab("https://nowsecure.nl/#relax")
    sb.sleep(1.2)
    if not sb.is_text_visible("OH YEAH, you passed!", "h1"):
        sb.get_new_driver(undetectable=True)
        sb.driver.uc_open_with_reconnect(
            "https://nowsecure.nl/#relax", reconnect_time=

Replies: 1 comment

Comment options

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