脚本的内容如下:
'Dialog("Login").WinEdit("Agent Name:").Type "mercury"
'Dialog("Login").WinEdit("Agent Name:").Set "mercury"
'Dialog("Login").WinEdit("Password:").SetSecure "4b8b5cee18083d037e77fcec6f0f2d06247603a0"
'Dialog("Login").WinButton("OK").Click
Window("Flight Reservation").WinObject("Date of Flight:").Type "030310"
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").Activate "14021 DEN 08:09 AM FRA 08:53 AM BA Window("Flight Reservation").WinEdit("Name:").Set "hadwin"
Window("Flight Reservation").WinButton("Insert Order").Click
问题处在倒数第3行,请问这个问题怎么解决呀
[ 本帖最后由 wuleenet 于 2010-3-1 15:44 编辑 ]作者: wuleenet 时间: 2010-3-1 16:16
高手呢,高手呢;
Cannot find the "From" object's parent "Flights Table" (class Dialog). Verify that parent properties match an object currently displayed in your application.
Line (9): "Window("Flight Reservation").Dialog("Flights Table").WinList("From").Activate "14021 DEN 08:09 AM FRA 08:53 AM BA $109.20"".
Tip: If the objects in your application have changed, the Maintenance Run Mode can
help you identify and update your steps and/or the objects in your repository.作者: dreamever 时间: 2010-3-1 17:29
找不到那个from下拉列表的父对象filghts table,多办是同步的原因,增加wait语句试一下。作者: wangsc_testing 时间: 2010-3-1 22:54
去对象库中看看Dialog("Flights Table")这个对象是否在Window("Flight Reservation")下,如果没有那就将Dialog("Flights Table")添加到Window("Flight Reservation")下作者: wangsc_testing 时间: 2010-3-1 22:55
你要能看懂这些报错的错误信息,知道它提示的是什么,说实话,我英语很烂的,但这些我能看懂