TA的每日心情 | 慵懒 2016-4-26 12:45 |
---|
签到天数: 3 天 连续签到: 2 天 [LV.2]测试排长
|
qtp自动的登录系统,录制订单的一部分,为什么我right后值为空?
Dim Tcounts,Fcounts
Window("Flight Reservation").WinObject("Date of Flight:").Type "121214"
Tcounts=Window("Flight Reservation").WinComboBox("Fly From:").GetROProperty("items count")
Fcounts=Window("Flight Reservation").WinComboBox("Fly To:").GetROProperty("items count")
Window("Flight Reservation").WinComboBox("Fly From:").Select RandomNumber(0,Fcounts-1)
Window("Flight Reservation").WinComboBox("Fly To:").Select RandomNumber(0,Tcounts-1)
Lcounts=Window("Flight Reservation").Dialog("Flights Table").WinList("From").GetROProperty("items count")
Window("Flight Reservation").Dialog("Flights Table").WinList("From").Select RandomNumber(0,Lcounts-1)
selectcons=Window("Flight Reservation").Dialog("Flights Table").WinList("From").GetSelection
'msgbox selectcons
selectcons=replace(selectcons," ","")
price=right (selectcons, 7)
msgbox selectcons
msgbox flighno
Window("Flight Reservation").Dialog("Flights Table").WinButton("OK").Click |
|