Skip to content

Need Help Changing Proxy Without Leaving the Browser #2615

Answered by mdmintz
Yanni-Benji asked this question in Q&A
Discussion options

You must be logged in to vote

Partial duplicate of #2100 (comment) (That was for BaseCase, but you're using the SB() format):

To change the proxy of an active browser in the middle of a test: (SB() format):

  • Use SeleniumBase with Wire Mode enabled (wire=True / --wire)
  • Use the sb.set_wire_proxy() method:
sb.set_wire_proxy("SERVER:PORT")
sb.set_wire_proxy("socks5://SERVER:PORT")
sb.set_wire_proxy("USERNAME:PASSWORD@SERVER:PORT")

(Note that Wire Mode cannot be used together with UC Mode.)

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Yanni-Benji
Comment options

@mdmintz
Comment options

@Yanni-Benji
Comment options

@mdmintz
Comment options

@Yanni-Benji
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