|
我想对FLY FROM下拉列表中的每个值都进行一次选择,代码是
Dim i
SystemUtil.Run "C:\Program Files\HP\QuickTest Professional\samples\flight\app\flight4a.exe","","C:\Program Files\HP\QuickTest Professional\samples\flight\app\","open"
Dialog("Login").WinEdit("Agent Name:").Set "sdfasd"
Dialog("Login").WinEdit("Password:").SetSecure "4e4107e1857a11995a162cd5cddca7ff2a6a1e07"
Dialog("Login").WinEdit("Password:").Type micReturn
Window("Flight Reservation").ActiveX("MaskEdBox").Type "111111"
a1=window("Flight Reservation").WinComboBox("Fly From:").Getitemscount
For i=0 to a1-1
window("Flight Reservation").WinComboBox("Fly From:").Select Randomnumber(0,a1-1)
x=window("Flight Reservation").WinComboBox("Fly From:").GetROProperty("selection")
print x
Next
打印出来的却是
Sydney
London
Sydney
Seattle
San Francisco
Portland
Seattle
Seattle
Los Angeles
Portland
求高手指点。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。 |
|