Error: “command line driver for internet explorer has stopped working ” when trying to destroy the driver in selenium

旧城冷巷雨未停 提交于 2019-12-08 13:34:55

问题


When running automation tests with selenium, I have been getting this error routinely, but not always, after a test passes. After a pass, it tries to destroy the driver but stalls, and this is not acceptable when running many tests back to back. Seems to happen in tests that switch the iframe often, but I cannot figure out a solution. I tried switching to defaultcontent, which I saw as a fix somewhere else, and it does not work. I am running windows 7 and internet explorer 10, but the issue persists in XP Mode on IE 8 as well.

IE Driver 2.32.3.0

It fails when:

        if (driver != null)
        {
            Driver.Quit();
            driver = null;
        }

The issue also seems to happen after I use a foreach loop through a table that has 60+ rows. Perhaps it is just a memory issue.

I clicked debug on the error and got this in a new instance of visual studio:

Unhandled exception at 0x771a15de in IEDriverServer.exe: 0xC00000FD: Stack overflow.


回答1:


CONFIRMED: The issue does not occur on IE driver 2.34



来源:https://stackoverflow.com/questions/18089725/error-command-line-driver-for-internet-explorer-has-stopped-working-when-try

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!