Issue
I'm trying to load a web page that requires authentication using Python script with Selenium.
options = webdriver.ChromeOptions()
prefs = {'download.default_directory': r"download.default_directory=" + download_folder,
"download.prompt_for_download": False, 'profile.default_content_setting_values.automatic_downloads': 1}
options.add_experimental_option('prefs', prefs)
options.add_argument("--start-maximized")
options.add_argument('--disable-browser-side-navigation')
driver = webdriver.Chrome(chrome_options=options, executable_path=chrome_driver)
driver.get('https://user:[email protected]/32324')
This still gets the popup alert with user name and password. So, I figured I'll just handle the alert in code but it seems the page doesn't finish loading until the alert is closed so the script is stuck on the get function. How do I handle this situation?
EDIT: This is not duplication because the accepted answer there doesn't work for me.
Solution
After many hours wasted, it turns out that it is a known issue with chromedriver: https://bugs.chromium.org/p/chromedriver/issues/detail?id=1917&q=authentication&colspec=ID%20Status%20Pri%20Owner%20Summary
I switched to using Firefox instead and it works from there.
Answered By - talon
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.