Skip to content Skip to sidebar Skip to footer

Selenium - User Prompt Of Type Promptuserandpass Is Not Supported

For a long time I've been using a python bot to do some work task. Among others things, the bot has to pass an authentication window. The code of this in the python program is the

Solution 1:

It seems that HTTPAuth dialogs are not supported by any drivers at the moment. Firefox implemented an workaround which does not work anymore in 67.0. It appears they cannot start adding support for the HTTP authentication prompt right now, due to missing specifications.

https://bugzilla.mozilla.org/show_bug.cgi?id=1556026

https://bugzilla.mozilla.org/show_bug.cgi?id=1556307

https://github.com/w3c/webdriver/issues/385

I've managed to workaround this problem by installing Firefox 66.0 under a different name and then mentioning its location when calling the FirefoxDriver, like @elead1 did.

from selenium.webdriver.firefox.firefox_binaryimportFirefoxBinaryfrom selenium.webdriverimportFirefox

path = FirefoxBinary("/path/to/Firefox2/firefox-bin")
browser = Firefox(firefox_binary=path)

Solution 2:

I don't have enough rep to comment and I know this isn't "solving" the problem, but I was able to work around this problem by using the Firefox ESR.

You can install the ESR parallel to your main Firefox installation, and then specify which binary the FirefoxDriver will use:

driver = webdriver.Firefox(firefox_profile=profile, firefox_binary="/path/to/esr/binary")

Post a Comment for "Selenium - User Prompt Of Type Promptuserandpass Is Not Supported"