我正面临Permission denied错误消息(权限被拒绝以获取属性Location.href),因为应用程序在中间页面中移动Http & HttpS页面。Selenium:拒绝获取属性的权限Location.href
我甚至用 * Chrome和 在FF
创建一个新的配置文件,但它仍然会产生相同的错误消息
任何一个可以帮助我
感谢
尝试我正面临Permission denied错误消息(权限被拒绝以获取属性Location.href),因为应用程序在中间页面中移动Http & HttpS页面。Selenium:拒绝获取属性的权限Location.href
我甚至用 * Chrome和 在FF
创建一个新的配置文件,但它仍然会产生相同的错误消息
任何一个可以帮助我
感谢
尝试我提供的信息最大的猜测是,它在https上被证书阻止。
我所做的是安装Cybervillains.cer(在测试后如果不需要,请将其删除!)并在测试时保持硒服务器2运行。
这将处理证书。
我还没有尝试,如果theres任何更好的解决方案uptodate硒2版本。
我忘了:将cybervillains.cer安装到您的Firefox档案并使用此档案进行测试! – ctekk 2012-02-20 09:56:43
RemoteControlConfiguration rcc=new RemoteControlConfiguration();
rcc.setTrustAllSSLCertificates(true);
SeleniumServer seleniumServer = new SeleniumServer(rcc);
try {
seleniumServer.boot();
seleniumServer.start();
} catch (Exception e) {
//do nothing
}
s.start();
s.windowFocus();
请添加上述第3行代码来启动硒服务器并尝试......这就是我在我的项目清除SSL错误
你能提供一些示例代码? – tester 2012-02-20 07:49:50