|
下面是代码
Window("Flight Reservation").WinButton("Button").Click
Window("Flight Reservation").WinObject("Date of Flight:").Type "121216"
Window("Flight Reservation").WinComboBox("Fly From:").Select "Denver"
Window("Flight Reservation").WinComboBox("Fly To:").Select "Frankfurt"
Window("Flight Reservation").WinButton("FLIGHT").Click
Window("Flight Reservation").Dialog("Flights Table").WinList("From").Select RandomNumber(0, 100)
Window("Flight Reservation").Dialog("Flights Table").WinButton("OK").Click
Window("Flight Reservation").WinEdit("Name:").Set "set"
Window("Flight Reservation").WinButton("Insert Order").Click
Window("Flight Reservation").WinButton("Button_2").Click
Window("Flight Reservation").Dialog("Open Order").WinCheckBox("Customer Name").Set "ON"
Window("Flight Reservation").Dialog("Open Order").WinEdit("Edit").Set "set"
Window("Flight Reservation").Dialog("Open Order").WinButton("OK").Click
Window("Flight Reservation").Dialog("Open Order").Dialog("Search Results").WinList("Flight No.").Select "set 29 AA 20264 3 1 112.200012/12/2016 Monday DEN Denver 12:12 AM LON London 07:23 PM"
Window("Flight Reservation").Dialog("Open Order").Dialog("Search Results").WinButton("OK").Click
然后就一直提示我
无法标识From对象的指定项,请确认指定项包含对象的项集合中。
Window("Flight Reservation").Dialog("Flights Table").WinList("From").Select RandomNumber(0, 100)这一行出错 |
|