0
我有一个由junit4,FireFox3.5的selenium2测试,当输入一些注册信息,然后点击一个按钮提交,它会变成HTTPS身份验证需要弹出。我怎样才能处理这个安全弹出输入用户名和密码。那么它将转到https页面并注册成功。 Image like that需要身份验证弹出Firefox中的Selenium时注册
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);
[Firefox认证弹出 - 使用Windows/Linux中的Sikuli脚本解析](http://stackoverflow.com/a/22628748/3458698) – Ramkumar 2014-03-25 08:25:33