|
由于执行到web_link_click("N0000000000100007381");时系统总找不到此对象,提示我需增加等待时间,故我增加了一个同步点obj_wait_bitmap("N0000000000100007381", "Img1", 20);
但执行的时候,总会如图的错误。
附脚本如下:
# Shell_TrayWnd
set_window ("Shell_TrayWnd", 3);
toolbar_button_press ("ToolbarWindow32_1", "启动 Internet Explorer 浏览器"); # Button Number 0;
# Browser Main Window
set_window ("Browser Main Window", 5);
list_select_item ("SysTreeView32", "PASS测试地址"); # Item Number 2;
list_select_item ("SysTreeView32", "PASS测试地址;PASS开发测试地址"); # Item Number 5;
# 欢迎使用印章集中作业系统
set_window("欢迎使用印章集中作业系统",4);
edit_set("j_username","luln");
obj_type("j_username","<kTab>");
password_edit_set("j_password","ad5e3fa27fb8ea3d821fcb11fc5e4796");
web_image_click("logon", 29, 14);
# contentIframe20060930112049
set_window("contentIframe20060930112049",1);
web_event("待处理文件(用印)", "click", 60, 9);
set_window("contentIframe20060930112049",2);
obj_wait_bitmap("N0000000000100007381", "Img1", 20);
web_link_click("N0000000000100007381");
web_sync(3);
edit_set("procOpinion","sdfsdfsdfsdf");
web_image_click("button_pass2", 38, 9);
web_sync(1);
web_link_click("返回上一页");
# Shell_TrayWnd
#set_window ("Shell_TrayWnd", 2);
#toolbar_button_press ("ToolbarWindow32_0", "WinRunner - [Noname1*]"); # Button Number 2; |
|