Skip to content

HTTP Authentication #934

Answered by mdmintz
JVPyDev asked this question in Q&A
Jul 7, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @DevOps-Martins , there's another way to handle authentication (via proxy server):

pytest --proxy=USERNAME:PASSWORD@IP_ADDRESS:PORT

(That proxy option is unique to SeleniumBase, which essentially lets you run tests through an authenticated Proxy server when using Chrome.)

Additionally, from inside an already running test, you can spin up a new window that uses an authenticated proxy server for a connection:

self.get_new_driver(proxy=None)

(Replace None with a proxy string in the format: USERNAME:PASSWORD@IP_ADDRESS:PORT)

Replies: 1 comment 1 reply

Comment options

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

Answer selected by JVPyDev
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