Internet Explorer 8 64bit and Selenium Not working

后端 未结 8 1733
慢半拍i
慢半拍i 2021-01-31 10:24

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

8条回答
  •  走了就别回头了
    2021-01-31 11:03

    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?"
    

    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"
        ...
    

    Alternatively, you can change browser string from the code:

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

    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.

提交回复
热议问题