I found a solution to this question:
from selenium import webdriver profile = webdriver.FirefoxProfile() profile.set_preference('network.http.phishy-userpass-length', 255) driver = webdriver.Firefox(firefox_profile=profile) driver.get("https://username: password@somewebsite.com /")
Part of FirefoxProfile should reject the confirmation dialog, because by default Firefox will show a pop-up dialog to prevent it from being sent.
user591593
source share