|
想请教各位一个问题,saffron是不是设置一个对象数组,每加载一个页面,就把页面对象追加到这个数组里?
页面中,对象应该是唯一的,在源代码中按“ctl00$idFormMain$SmartFormView1$BusinessIDTextBox“搜索没找到同名的
脚本如下:
'打开网页
Launch "website","http://10.20.56.32:8023/Login.aspx"
BrowseTo "http://10.20.56.32:8023/Login.aspx"
'登录框中录入文字
EnterTextIn "txtPassword","pass@word1"
EnterTextIn "txtName","zhangpeiwei"
'点击登录按钮
Activate "WebButton", "登录"
Activate "Link","信息管理"
Activate "Link","业务类型"
'打开新建界面
Activate "Link","新建"
EnterTextIn "ctl00$idFormMain$SmartFormView1$BusinessIDTextBox","1100"
EnterTextIn "ctl00$idFormMain$SmartFormView1$BusinessNameTextBox","1100"
Activate "WebButton", "保存"
执行时却报以下错误,说对象不唯一,在登录主界面上也找不到同名的啊
为什么啊????????????
[ 本帖最后由 hollyecho 于 2010-6-21 15:32 编辑 ] |
|