Skip to content

Does driver.get(url) prevent url redirection? #3430

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

You must be logged in to vote

If there's a redirect, there's a redirect. It won't be prevented.
Perhaps the better question is how to be stealthier. Use this:

from seleniumbase import SB

with SB(uc=True, test=True) as sb:
    url = "https://chatgpt.com"
    sb.activate_cdp_mode(url)
    sb.uc_gui_click_captcha()
    sb.sleep(5)

Replies: 1 comment 1 reply

Comment options

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

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