Robot Framework(AutoItLibrary安装)

RobotFramework下安装AutoItLibrary库

1、安装pythonwin32

在下载地址:http://sourceforge.net/projects/pywin32/files/pywin32/Build%20219/找到对应自己python的pythonwin32版本,下载并安装pythonwin32。

Robot Framework(AutoItLibrary安装)

注意】:不管电脑的版本是否为32或者64位的,pythonwin32的版本需要匹配python的版本。

插入一下:如何确定自己安装的python是64位还是32位

打开在命令行中输入python,即可查看python的版本

Robot Framework(AutoItLibrary安装)

安装成功的验证:在cmd中输入pip list,会查看到pywin32,表示安装成功

Robot Framework(AutoItLibrary安装)

2、安装AutoItLibrary

百度搜索个版本为AutoItLibrary1.1的文件,下载下来,解压缩,从命令行进入解压后的目录(记得是管理员打开命令行)。

管理员打开命令行方式:

系统中输入cmd,不急着回车,鼠标右键,选择以管理员身份运行,然后cd进入解压的文件下,输入命令python setup.py install进行安装

Robot Framework(AutoItLibrary安装)

3、安装AutoIt_V3

这时我们打开RIDE,加载AutoItLibrary,发现是红色的。此时我们还需要安装一下AutoIt,不带Library的。它的官网下载地址:

https://www.autoitscript.com/site/autoit/downloads/

从网站上下载 AutoIt 并安装,安装完成在菜单中会看到图中的目录:

Robot Framework(AutoItLibrary安装)

AutoIt Windows Info: 用于帮助我们识 Windows 控件信息。
Compile Script to.exe: 用于将 AutoIt 生成 exe 执行文件。
Run Script: 用于执行 AutoIt 脚本。
SciTE Script Editor: 用于编写 AutoIt 脚本

此时,重启RIDE,导入AutoItLibrary就正确,如下图:

Robot Framework(AutoItLibrary安装)