Internet Explorer 8的64位和硒不工作 [英] Internet Explorer 8 64bit and Selenium Not working

查看:213
本文介绍了Internet Explorer 8的64位和硒不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让Selenium测试运行。然而,每一次我尝试运行测试,应该运行IE浏览器,我得到的htmlutils.js 863线错误它说我应该禁用我的弹出式窗口拦截。事情是我到IE工具 - >打开弹出块。

I am trying to get selenium tests to run. Yet every time I try to run a tests that should run IE I get a error on line 863 of htmlutils.js It says that I should disable my popup blocker. The thing is I went to IE tools-> turn of popup block.

所以它被禁用,我得到这个错误。

So it is disabled and I get this error.

有没有我需要禁用别的东西。事实上,我甚至不知道是什么版本的Internet Explorer正在运行,因为我使用的是Windows 7专业版64位版本。所以,当我使用IE浏览器我用的64位版本,但我了解下,如果该网站或类似的东西不支持64位则进入32bit的。

Is there something else I need to disable. I actually don't even know what version of Internet explorer it is running since I am using Windows 7 Pro 64bit version. So when I do use IE I use 64bit version but I am under the understanding if the site or something like that does not support 64bit it goes to 32bit.

所以不知道我需要做的,使其工作。

So not sure what I need to do it to make it work.

这就是它

function openSeparateApplicationWindow(url, suppressMozillaWarning) {
    // resize the Selenium window itself
    window.resizeTo(1200, 500);
    window.moveTo(window.screenX, 0);

    var appWindow = window.open(url + '?start=true', 'selenium_main_app_window');
    if (appWindow == null) {
        var errorMessage = "Couldn't open app window; is the pop-up blocker enabled?"
        LOG.error(errorMessage);
        throw new Error("Couldn't open app window; is the pop-up blocker enabled?");
    }

这哪里是log.error信息存储在哪里?也许我可以张贴这一点。

Where is this log.error message stored? Maybe I can post that too.

推荐答案

我对Vista和IE8类似的问题 我会得到同样的错误信息

I had a similar problem on Vista and IE8 I would get the same error message

Couldn't open app window; is the pop-up blocker enabled?"

运行我的远程控制,管理不是我的选择,并且还从安全角度来看一个贫穷的想法。 所以,最后我设法解决了这个由* ietha,以* iexploreproxy量变到质变的浏览器 grid_configuration.yml

Running my remote control as Admin wasn't an option for me, and also a poor idea from a security perspective. So in the end I manage to solved this by changeing browser from "*ietha" to "*iexploreproxy" grid_configuration.yml

hub:
  port: 4444
    ...
    - name: "Internet Explorer 8 on Vista"
      browser: "*iexploreproxy"
    ...

另外,您也可以从code修改浏览器的字符串:

Alternatively, you can change browser string from the code:

ISelenium selenium = new DefaultSelenium("localhost", 4444, "*iexploreproxy", "http://www.google.com/");

工程就像一个魅力。 唯一的问题remaing是,如果这在某种程度上影响的测试用例的结果。到目前为止,还没有,但我会更新的情况下会发生这样的回答。

Works like a charm. The only question remaing is if this somehow affects the outcome of the test cases. So far no, but I'll update this answer in case that would happen.

这篇关于Internet Explorer 8的64位和硒不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆