Bug #1658
Firefox no longer works with HTTP authentication
Start date:
12/18/2016
Due date:
% Done:
100%
Description
Firefox rendering no longer works with HTTP authentication since it asks the user if they want to authenticate to the site.
Associated revisions
Making HTTP basic authentication work on Firefox again
reference #1658
Updating name of the get_firefox_proxy_profile
This was done because this function is no longer used just for Firefox.
Closes #1658.
History
#3 Updated by Luke Murphey about 8 years ago
It looks like some people are using addCustomRequestHeader to just add the HTTP auth header
#4 Updated by Luke Murphey about 8 years ago
Might be able to just accept the dialog
http://www.seleniumeasy.com/selenium-tutorials/how-to-handle-javascript-alerts-confirmation-prompts
#6 Updated by Luke Murphey about 8 years ago
This throws the exception seen in https://github.com/SeleniumHQ/selenium/issues/453
from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions driver = webdriver.Firefox() driver.get("https://httpbin.org/basic-auth/user/passwd") wait = WebDriverWait(driver, 10) alert = wait.until(expected_conditions.alert_is_present()) alert.authenticate("user", "passwd")
#7 Updated by Luke Murphey about 8 years ago
This works:
from selenium import webdriver profile = webdriver.FirefoxProfile() driver = webdriver.Firefox(profile) driver.get("https://user:passwd@httpbin.org/basic-auth/user/passwd")
#8 Updated by Luke Murphey about 8 years ago
- Project changed from Website Monitoring to Website Input
- Target version changed from 2.0.1 to 4.0.2
#9 Updated by Anonymous about 8 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset splunk-web-input|r480.