与Selenium Python一起使用时IE驱动程序服务器意外关闭错误

0 投票
1 回答
827 浏览
提问于 2025-04-18 11:11

我正在用Python和Selenium这个工具来测试一个网页软件。我写了一个简单的脚本,但在IE浏览器驱动启动的时候,我需要让它等一会儿,这样才能对其他测试元素进行操作。在等待几秒钟后,第一次尝试访问网页元素时就出现了错误,提示IE驱动服务器已经停止,我需要关闭或重启程序。

系统的异常信息中还有一些日志,如下所示:

Problem signature:
  Problem Event Name:   APPCRASH
  Application Name: IEDriverServer.exe
  Application Version:  2.33.0.0
  Application Timestamp:    519d056f
  Fault Module Name:    IEDF41E.tmp
  Fault Module Version: 0.0.0.0
  Fault Module Timestamp:   519d0564
  Exception Code:   c0000005
  Exception Offset: 00015a90
  OS Version:   6.1.7601.2.1.0.256.1
  Locale ID:    1033
  Additional Information 1: 0a9e
  Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
  Additional Information 3: 0a9e
  Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

Read our privacy statement online:
  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
  C:\Windows\system32\en-US\erofflps.txt

我从这个链接这个文件(路径是C:\Windows\system32\en-US\erofflps.txt)没有找到任何有用的信息。我使用的是Windows 7的AMD64系统,Python 2.7和Selenium 2.9。对于这个问题,有什么想法吗?

1 个回答

0

正如@Arran所说,这个问题是关于更新IE驱动程序的;因为我从这个链接下载了最新版本的驱动程序exe文件,所以现在没有再出现异常了。

撰写回答