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); btw, using old version of selenium.
Comments
Post a Comment