|
Browser("MOSTsView").Page("MOSTsView").WebEdit("IDToken1").Set "admin"
Browser("MOSTsView").Page("MOSTsView").WebEdit("IDToken2").SetSecure "password"
Browser("MOSTsView").Page("MOSTsView").WebButton("登 录").Click
Browser("MOSTsView").Page("MOSTsView_2").Frame("treeFrame").Link("参数设置").Click
Browser("MOSTsView").Page("MOSTsView_2").Frame("mainFrame").Link("工程预约").Click
Browser("MOSTsView").Page("MOSTsView_2").Frame("mainFrame_2").WebCheckBox("selectcheck").Set "ON"
Browser("MOSTsView").Page("MOSTsView_2").Frame("mainFrame_2").WebButton("编辑").Click
a=Browser("MOSTsView").Page("MOSTsView_2").Frame("mainFrame_2").WebEdit("neName").GetROProperty("value")
If a<>"" Then
Browser("MOSTsView").Page("MOSTsView_2").Frame("mainFrame_3").WebButton("编辑").Click
rows=Browser("MOSTsView").Page("MOSTsView_2").Frame("Frame").WebList("selectedList").GetROProperty("items count")
b=rows-1
For i=0 to b
Browser("MOSTsView").Page("MOSTsView_2").Frame("Frame").WebList("selectedList").Select "#"&i
Browser("MOSTsView").Page("MOSTsView_2").Frame("Frame").WebButton("<<").Click
Next
Browser("MOSTsView").Page("MOSTsView_2").Frame("Frame").WebButton("确定").Click
Browser("MOSTsView").Page("MOSTsView_2").Frame("mainFrame_3").WebButton("保存").Click
If Browser("MOSTsView").Page("MOSTsView_2").Frame("mainFrame_4").Check (CheckPoint("mainFrame")) Then
Browser("MOSTsView").CloseAllTabs
End If
End If
报错:Cannot identify the specified item of the selectedList object. Confirm that the specified item is included in the object's item collection. |
|