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

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -