|
2#
楼主 |
发表于 2006-6-15 18:03:54
|
只看该作者
# qwer
set_window("qwer",183);
edit_set("userID","100002");
obj_type("userID","<kTab>");
password_edit_set("password","a1efa966b83e2082");
obj_type("password","<kReturn_E>");
web_image_click("btu_login", -143, -20);
# menuFrame
---> set_window("menuFrame",2);
web_link_click("添加");
# mainFrame
set_window("mainFrame",6);
edit_set("branchID","222222222");
obj_type("branchID","<kTab>");
edit_set("branchName","222222");
obj_type("branchName","<kTab>");
edit_set("branchAddr","22222");
list_select_item("branchClass","三级支行");
web_sync(2);
list_select_item("superiorID","(123324321)12`");
button_press("确定");
在箭头处报:winrunner cannot find the window “menuFrame”‘
GUI文件:
mainFrame:
{
class: window,
MSW_class: html_frame,
html_name: mainFrame,
location: 1
}
mainFrame.branchAddr:
{
class: edit,
MSW_class: html_edit,
html_name: branchAddr
}
mainFrame.branchClass:
{
class: list,
MSW_class: html_combobox,
html_name: branchClass
}
mainFrame.branchID:
{
class: edit,
MSW_class: html_edit,
html_name: branchID
}
mainFrame.branchName:
{
class: edit,
MSW_class: html_edit,
html_name: branchName
}
mainFrame.superiorID:
{
class: list,
MSW_class: html_combobox,
html_name: superiorID
}
mainFrame."确定":
{
class: push_button,
MSW_class: html_push_button,
html_name: "确定"
}
menuFrame:
{
class: window,
MSW_class: html_frame,
html_name: menuFrame
}
menuFrame."添加":
{
class: object,
MSW_class: html_text_link,
html_name: "添加"
}
"对帐系统":
{
class: window,
MSW_class: html_frame,
html_name: "对帐系统"
}
"银企对帐系统".btu_login:
{
class: object,
MSW_class: html_rect,
html_name: "btu_login.gif"
}
"银企对帐系统".password:
{
class: edit,
MSW_class: html_edit,
html_name: password
}
"银企对帐系统".userID:
{
class: edit,
MSW_class: html_edit,
html_name: userID
}
[ 本帖最后由 jjqyyf 于 2006-6-15 18:07 编辑 ] |
|