|
一个页面,上面是根据数据库中的信息生成的菜单,iframe页面是根据选择的菜单对应的页面,用robot录制脚本的时候,选好菜单之后的操作不能回放.
StartBrowser "http://10.25.6.4:7001/efesco", "WindowTag=WEBBrowser"
Window SetContext, "WindowTag=WEBBrowser", ""
InputKeys "admin"
Browser NewPage,"HTMLTitle=上海对外服务有限公司商务咨询分公司",""
EditBox Click, "Name=password", "Coords=45,9"
InputKeys "admin"
HTMLImage Click, "Index=3", "Coords=28,9"
Browser NewPage,"HTMLTitle=角色选择",""
HTML Click, "Type=HTMLTableCell;HTMLId=dt_form_role_id;Index=3", "Coords=101,12"
PushButton Click, "HTMLId=btn_confirm"
Browser NewPage,"HTMLTitle=上海对外服务有限公司商务咨询分公司",""
PushButton Click, "Index=1"
HTMLTable Click, "Index=3", "Row=4;Col=1"
Browser SetFrame,"Type=HTMLFrame;HTMLId=workspace",""
下列的代码不能回放
Browser NewPage,"HTMLTitle=维护对外推荐",""
PushButton Click, "Type=PushButton;HTMLId=button_insert"
HTML Click, "Type=HTMLTableCell;HTMLId=db_detail_recommenttoname;Index=5", "Coords=101,11"
Browser SetFrame,"Type=HTMLFrame;HTMLId=workspace;\;Type=HTMLFrame;Index=1",""
Browser NewPage,"",""
HTML DblClick, "Type=HTMLTableCell;HTMLId=db_detail_cname;Index=3", "Coords=78,10"
Browser SetFrame,"Type=HTMLFrame;HTMLId=workspace",""
HTML Click, "Type=HTMLTableCell;HTMLId=db_detail_recommendoperation;Index=5", "Coords=84,19"
HTML Click, "Type=HTMLTableCell;HTMLId=_value;Index=4", "Coords=26,3"
PushButton Click, "Type=PushButton;HTMLId=button_save"
Window SetContext, "Caption=Microsoft Internet Explorer", ""
Window Click, "", "Coords=110,51"
PushButton Click, "Text=确定"
该怎样修改?
先谢谢! |
|