Handling "Authentication Required" alert box with Python 2.7 + Selenium Webdriver -


i having issue secure url:

opening url creates "authentication required" alert box username , password fields.

i new selenium webdriver , python. not familiar handling alerts , manually typing in credentials until can figured out. i have tried adding username/password url. not work me.

could please point me in direction of entering keys username , password fields in alertbox?

in case of such authentication, need pass username , password server while accessing page avoid authentication window(which out of reach of selenium)

suppose url you're trying access is: http://example.com

you'll have access url credentials following:

driver.get('http://username:password@example.com') 

where username username , password password site.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -