|
使用invokeapplication来启动flight时,提示找不到系统指定的文件.
Dialog("Login").WinEdit("Agent Name:").Set "gold"
Dialog("Login").WinEdit("Agent Name:").Type micTab
Dialog("Login").WinEdit("Password:").SetSecure "4ab07c3daf8a08f8a1615ece7cd73e4207f98792"
Dialog("Login").WinEdit("Password:").Type micReturn
Window("Flight Reservation").WinObject("Date of Flight:").Type "090926"
Window("Flight Reservation").WinComboBox("Fly From:").Select "Denver"
Window("Flight Reservation").WinComboBox("Fly To:").Select "Los Angeles"
Window("Flight Reservation").WinButton("FLIGHT").Click
Window("Flight Reservation").Dialog("Flights Table").WinList("From").Activate "6306 DEN 11:30 AM LAX 02:50 PM UA $255.00"
Window("Flight Reservation").WinEdit("Name:").Set "sadf"
Window("Flight Reservation").WinButton("Insert Order").Click
Window("Flight Reservation").Close
InvokeApplication "flight4a.exe"
Dialog("Login").WinEdit("Agent Name:").Set "gold_85"
Dialog("Login").WinEdit("Agent Name:").Type micTab
Dialog("Login").WinEdit("Password:").SetSecure "4ab07c75b186725544030acf9a0eff82f999b7e9"
Dialog("Login").WinButton("OK").Click
Window("Flight Reservation").WinObject("Date of Flight:").Type "090927"
Window("Flight Reservation").WinComboBox("Fly From:").Select "Frankfurt"
Window("Flight Reservation").WinComboBox("Fly To:").Select "Los Angeles"
Window("Flight Reservation").WinButton("FLIGHT").Click
Window("Flight Reservation").Dialog("Flights Table").WinList("From").Activate "20328 FRA 06:12 AM LAX 01:23 PM AA $112.20"
Window("Flight Reservation").WinEdit("Name:").Set "k"
Window("Flight Reservation").WinButton("Insert Order").Click
Window("Flight Reservation").Close
一开始是不会出错的,我保存完这个文件后,半小时打开再回放就报错了..可是那文件还存在呀 |
|