我的项目完全是用 ExtJs 语言(不是 html)开发的。
请注意以下代码,我附上了我的窗口的屏幕截图。我希望选择组合框项(activePoll server1),如图所示。请建议。
Option explicit
Dim bro,url
bro="C:\Program Files\Internet Explorer\iexplore.exe"
url="-------------------------------------------------------"
invokeapplication(bro&" "&url)
With Browser("Certificate Error: Navigation")
With .Page("Certificate Error: Navigation")
.Link("Continue to this website").Click
End With
End With
With Browser("Title:=WebiPer.*.*")
With .Page("title:=WebiPer.*")
.WebEdit("name:=userName").Set "Sai"
.WebEdit("name:=password").Set "Admin123"
.WebList("name:=loginType").Select "ManagementApps"
.WebButton("name:=Login").Click
End With
End With
With Browser("Title:=APS Configuration Client")
With .Page("title:=APS Configuration Client")
.WebEdit("name:=Image").Set"activePollServer1"
End With
End With