Issue with BASIC HTTP authentication using Selenium in Python -


i trying test web app has basic authentication (there popup comes authenticate user when hit whatever page, popup not part of html). after entering username/password , clicking ok on popup main login page appears.

now, need strategy authenticate user in firefox on popup. tried following looking @ old atricles in stack overflow , not working me.

can please guide me how proceed? have selenium 2.5.0 installed , using python scripting.

profile = webdriver.firefoxprofile() profile.set_preference("network.automatic-ntlm-auth.trusted-uris", "website url") driver = webdriver.firefox(firefox_profile=profile) driver.get("http://username:password@websiteurl") 

to user:password scheme working need set preference:

profile.setpreference("network.http.phishy-userpass-length", 255); 

reference

btw, using old version of selenium.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jquery - Keeping Kendo Datepicker in min/max range -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -