(一)辅助工具推荐
IE的F12 Web控件分析
WatiN Test Recorder:Web测试录制
Python脚本编辑器:推荐CodeAssistor(AutoPyTest独立工具Plugs目录下)
(二)Python脚本例子
import clr, sys
clr.AddReference('IronPythonTest')
clr.AddReference('WatiN.Core')
from IronPythonTest import *
from WatiN.Core import *
from time import sleep
ie = IE("http://www.baidu.com");
ie.TextField("kw").TypeText("谷歌1");
ie.Button("su").ClickNoWait();
sleep(3.0);
ie.Close();
(三)界面和效果
AutoPyTest获取:
资源下载:http://download.csdn.net/detail/w565911788/4323928 (自解压绿色安装包)
需安装环境:dotNetFx40_Full_x86_x64.exe; IronPython-2.7.2.1.msi; (或以上)