Robot Framework+Selenium2+AutoItLibrary安装

Robot Framework+Selenium2+AutoItLibrary安装

安装完,pip list 显示AutoItLibrary安装成功,在cmd 命令窗口的python下也能成功导入。但是在RF里导入还是飘红

查看Tools-> view RIDE log, 提示'尚未调用CoInitialize'。 

解决方案:

在Python安装目录(Python37Libsite-packageswin32comclient)下,修改dynamic.py文件,在import pythoncom后,加 pythoncom.CoInitialize() 。(目的是解决在ride中导入AutoItLibrary时,报(-2147221008, '尚未调用 CoInitialize。', None, None)的错误。)

原文地址:https://www.cnblogs.com/ppybear/p/12408586.html