|
我起点和终点用datatable选择 航班用随机数选择 可每次选择航班时都出现错误 请问怎么解决 多谢啦 提示如下
Line (6): "Window("Flight Reservation").Dialog("Flights Table").WinList("From").Activate RandomNumber(0, 100)".
代码:
Window("Flight Reservation").WinButton("Button").Click
Window("Flight Reservation").WinObject("Date of Flight:").Type "121209"
Window("Flight Reservation").WinComboBox("Fly From:").Select DataTable("fly_from", dtGlobalSheet)
Window("Flight Reservation").WinComboBox("Fly To:").Select DataTable("fly_to", dtGlobalSheet)
Window("Flight Reservation").WinButton("FLIGHT").Click
Window("Flight Reservation").Dialog("Flights Table").WinList("From").Activate RandomNumber(0, 100)
Window("Flight Reservation").WinEdit("Name:").Set "xxx"
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 "xxx"
Window("Flight Reservation").Dialog("Open Order").WinButton("OK").Click
Window("Flight Reservation").Dialog("Open Order").Dialog("Search Results").WinList("Flight No.").Activate RandomNumber(0, 100)
[ 本帖最后由 zhufeizzz 于 2009-8-10 17:06 编辑 ] |
|