|
我对用户名进行了参数化,第一遍执行的时候可以,循环执行第二遍的时候就卡在脚本的第一行代码那。脚本代码如下:
Dialog("Login").WinEdit("Agent Name:").Set DataTable("p_Text", dtGlobalSheet)
Dialog("Login").WinEdit("Agent Name:").Type micTab
Dialog("Login").WinEdit("Password:").SetSecure "50adc4345ffccbd8c54706800ff53606adebf80e"
Dialog("Login").WinEdit("Password:").Type micReturn
Window("Flight Reservation").WinObject("Date of Flight:").Type "121123"
Window("Flight Reservation").WinComboBox("Fly From:").Select "Denver"
Window("Flight Reservation").WinComboBox("Fly To:").Select "London"
Window("Flight Reservation").WinButton("FLIGHT").Click
Window("Flight Reservation").Dialog("Flights Table").WinList("From").Activate "20264 DEN 12:12 AM LON 07:23 PM AA $112.20"
Window("Flight Reservation").WinEdit("Name:").Set "22"
Window("Flight Reservation").WinButton("Insert Order").Click
Window("Flight Reservation").Close |
|