I have a selenium2 test by junit4,FireFox3.5, when type some register information then click an button to submit,it will turns to HTTPS Authentication Required popup. How can I handle this security popup input username and password. then it will turn to an https page and register succeed. Image like that
public void testUntitled() throws Exception {
selenium.open("/");
selenium.waitForPageToLoad("30000");
selenium.select("year", "label=2014");
selenium.select("day", "label=03");
selenium.type("firstName", "asd");
selenium.type("lastName", "df");
selenium.click("//div[@id='page-body']/div[1]/input");
Thread.sleep(30000);