I am attempting to automate a process using selenium with Java. I am trying to navigate to a URL, which the test does do. A screen pops out over the top of Firefox asking for a user name and password. When this screen pops out, firebug stops working and I cannot get any information about this screen.
How do I handle a modal dialogue with Selenium, when I cannot find anything about it?
I guess, that you are trying to get to HTTP Authentification protected page. Try getting here like this:
driver.get("http://username:password@your-site.com");
Where driver
is assumed as healthy and living instance of WebDriver
This actually did not work, the dialog still displays. Instead of running the tests in Firefox as I had wanted I ran them in IE which was using NTLM so I didn't need to input my information.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.