Selenium: Please offer a solution for basic authentication

Created on 12 Nov 2018  路  6Comments  路  Source: SeleniumHQ/selenium

Meta -

OS:

Selenium Version:

Browser:

Browser Version:

Expected Behavior -

Please finally make it possible that it is possible to send a header with the method GoToUrl(). This is the only really working possibility for Basic Authentication. Because tools like AutoIt don't work on BrowserStack etc.

Actual Behavior -

There is no way to send a header. And the complete problem is open since 2016!!!
https://github.com/SeleniumHQ/selenium-google-code-issue-archive/issues/34
We are thinking about to change to Ranorex -- with this issues we can't work professional.

Steps to reproduce -

I-enhancement

All 6 comments

You mean using something like a solution using a proxy? You haven鈥檛 said, but guessing that you鈥檙e using C#, there are example repositories that demonstrate using a proxy to accomplish lots of tasks that may nor be possible with Selenium.

Jim, sorry -- I have not read all the content of you solution, sorry.
I think, this is it, what I looking for. I will test tomorrow and then I give you a feedback.

LG

Andreas

To do this in a cross-browser way that provides a pleasant user API is distinctly non-trivial, but we're working on it, as https://github.com/w3c/webdriver/issues/385 shows.

It turns out that not every browser has a mechanism for simply "implementing a header function so that the tool can be used professionally". Personally, I'm tempted to blame those amateurs who've poured years of effort into the blasted things.

More seriously, @AndreasKarz, we know this is something that people really want, and it's something that we really want too. If you'd like to help us push it over the line, contributing to the W3C webdriver spec would be an excellent first step: it's on GitHub and run in the open specifically to enable this kind of collaboration.

Are there any hacks or workarounds to be able to do this kind of thing in the meanwhile? Maybe there's a (semi) neat way to achieve this effect with a plugin or something similar?

@shs96c @AndreasKarz in the w3c/webdriver#385, in the last comment, they are welcoming the writing of the prose and merged of the change. @AndreasKarz it would be a great contribution to a highly demanded spec in the W3C webdriver and hence, selenium

Following

Was this page helpful?
0 / 5 - 0 ratings