|
录制打开网页的测试脚本,回放正常,但只要编辑就出现回放错误的现象,如加入延时,循环等。
用了CUI_Load,也学习了CUI,但就是不行,另一台电脑可以。
本人菜鸟,寻帮助:
代码如下:
# 循环
static i;
for(i=0;i<=3;i++)
{
# Program Manager
set_window ("Program Manager", 1);
list_activate_item ("SysListView32", "IEXPLORE");
wait(2);
# about:blank - Microsoft Internet Explorer
set_window ("about:blank - Microsoft Internet Explorer", 3);
list_select_item ("ComboBox", "#0");
wait(2);
# Google - Microsoft Internet Explorer
set_window("Google - Microsoft Internet Explorer", 5);
wait(5);
obj_check_bitmap("Internet Explorer_Server", "Img1", 1, 220, 30, 362, 130);
win_close ("Google - Microsoft Internet Explorer");
wait(10);
}
[ 本帖最后由 RORO_CULS 于 2008-9-2 16:04 编辑 ] |
|