Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Selenium:获取属性位置的权限被拒绝。href_Selenium_Selenium Rc - Fatal编程技术网

Selenium:获取属性位置的权限被拒绝。href

Selenium:获取属性位置的权限被拒绝。href,selenium,selenium-rc,Selenium,Selenium Rc,当应用程序在Http和HttpS页面之间移动时,我面临权限拒绝错误消息(获取属性位置的权限被拒绝。href) 我甚至试过使用 *铬和 通过在FF中创建新配置文件 但它仍然会产生相同的错误消息 有人能帮我吗 谢谢根据提供的信息,我最大的猜测是,它被https上的证书阻止了 我所做的是安装Cybervillains.cer(如果测试后不需要删除它!),并在测试时保持selenium server 2运行 这将处理证书 对于最新的selenium 2版本,我还没有尝试过是否有更好的解决方案

当应用程序在Http和HttpS页面之间移动时,我面临权限拒绝错误消息(获取属性位置的权限被拒绝。href)

我甚至试过使用 *铬和 通过在FF中创建新配置文件

但它仍然会产生相同的错误消息

有人能帮我吗


谢谢

根据提供的信息,我最大的猜测是,它被https上的证书阻止了

我所做的是安装Cybervillains.cer(如果测试后不需要删除它!),并在测试时保持selenium server 2运行

这将处理证书

对于最新的selenium 2版本,我还没有尝试过是否有更好的解决方案

             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行代码以启动selenium服务器,然后重试。。。这就是我在我的项目中清除ssl错误的方法

你能提供一些示例代码吗?我忘记的是:将cybervillains.cer安装到你的firefox配置文件中,并使用此配置文件进行测试!!