1

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?

2
  • Which browser are you using? In Firefox with CTRL+U you can view the page source..Try that and search for username or password so you can locate the id's you need. Commented Aug 16, 2012 at 9:41
  • If it is a real dialog box, it's an 'alert' and Selenium2 has a feature for that. Commented Aug 20, 2012 at 12:26

2 Answers 2

1

I guess, that you are trying to get to HTTP Authentification protected page. Try getting here like this:

driver.get("http://username:[email protected]");

Where driver is assumed as healthy and living instance of WebDriver

Sign up to request clarification or add additional context in comments.

Comments

0

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.