|
6#
楼主 |
发表于 2005-2-19 16:30:39
|
只看该作者
######################################
#详细信息
#####################################
# Browser Main Window_1
win_activate ("Browser Main Window_1");
# panel
set_window("panel",59);
web_event("公司信息", "click", 30, 0);
# main
set_window("main",4);
button_set("cid",ON);
button_press("详细信息");
win_wait_info("Browser Main Window_2","enabled",1,10);
# Browser Main Window_2
win_move ("Browser Main Window_2", 130, 101);
# companydetail
set_window("companydetail",8);
button_press("新增");
# DHCiHR V3
set_window("DHCiHR V3",12);
edit_set("B0140","yt");
button_press("新 增");
web_sync(1);
#判断是否保存成功
text_exists = web_frame_text_exists("DHCiHR V3","成功","","");
if(text_exists == E_OK)
{
report_msg("保存成功");
}
else
{
report_msg("没有保存成功!");
texit;
}
button_press("关闭");
# Browser Main Window_2
win_close ("Browser Main Window_2");
这是我的脚本,回放的时候最后2句
win_close ("Browser Main Window_2");
都没有执行,但是结果显示pass
如果脚本中不加if判断语句,就能正常运行到最后,结果也是pass
[ Last edited by zhenhaiou on 2005-2-19 at 16:55 ] |
|