qtp 录制自带程序flight ,回放的时候, 日期那边一直录不进去,是什么原因
Dialog("Login").WinEdit("Agent Name:").Set "test"Dialog("Login").WinEdit("Password:").SetSecure "51ed5a6bef308024ca8881c68b6fc40e8914fa7d"
Dialog("Login").WinButton("OK").Click
Window("Flight Reservation").ActiveX("MaskEdBox").Type "112233"
Window("Flight Reservation").WinComboBox("Fly From:").Select "London"
Window("Flight Reservation").WinComboBox("Fly To:").Select "Frankfurt"
Window("Flight Reservation").WinButton("FLIGHT").Click
Window("Flight Reservation").Dialog("Flights Table").WinList("From").Select "12496 LON 12:48 PM FRA 01:33 PM AA $106.00"
Window("Flight Reservation").Dialog("Flights Table").WinButton("OK").Click
Window("Flight Reservation").WinEdit("Name:").Set "ww"
Window("Flight Reservation").WinButton("Insert Order").Click
回放报错:
Object not visible
Line (5): "Window("Flight Reservation").WinComboBox("Fly From:").Select "London"". :Q昨晚录的版本时QTP11,系统是win7,今早用QTP9.2,系统xp结果没问题, ... 回复 1# robbie821
话说你录不到会手工添加么?把对象添加到对象库然后再添加相应的代码。。。不就结束了么?。。。。用QTP 录制。。。真浪费资源 我把第四行改了一下是可以的运行的 环境:win7 64 QTP 11
Window("Flight Reservation").WinObject("Date of Flight:").Type "12122013" 回复 5# kemin046
看我操作的,Window("Flight Reservation").WinObject("Flight Schedule:")
就是没有你写的:WinObject("Date of Flight:"). 回复 5# kemin046
按照你说的,我回放报错了。
找不到DATE OF FLIGHT, 手动添加对象试试?
页:
[1]