HTTP Authentication #934
Answered
by
mdmintz
JeffVM-Solutions
asked this question in
Q&A
|
Hello Michael, I was wondering if you have any custom settings for HTTP/HTTPS authentication other than passing username and password in the self.open("https://username:password@website.com"). I can imagine you've had to deal with 401 errors while running some scripts. |
Answered by
mdmintz
Jul 7, 2021
Replies: 1 comment 1 reply
|
Hi @DevOps-Martins , there's another way to handle authentication (via proxy server): (That Additionally, from inside an already running test, you can spin up a new window that uses an authenticated proxy server for a connection: (Replace |
1 reply
Answer selected by
JeffVM-Solutions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @DevOps-Martins , there's another way to handle authentication (via proxy server):
(That
proxyoption 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:
(Replace
Nonewith a proxy string in the format:USERNAME:PASSWORD@IP_ADDRESS:PORT)