|
用QTP录制好一个应用程序的安装后,回放不了.代码如下:
Window("Select Setup Language").WinObject("OK").Click 48,1
Window("Audacity 1.3 Beta").WinObject("Next >").Click 34,11
Window("Audacity 1.3 Beta").WinObject("I accept the agreement").Click 85,2
Window("Audacity 1.3 Beta").WinObject("Next >").Click 35,8
Window("Audacity 1.3 Beta").WinObject("Next >").Click 35,10
Window("Audacity 1.3 Beta").WinObject("Next >").Click 35,10
Dialog("Folder Exists").WinButton("Yes").Click
Window("Audacity 1.3 Beta").WinObject("Next >").Click 38,9
Window("Audacity 1.3 Beta").WinObject("Next >").Click 38,9
Window("Audacity 1.3 Beta").WinObject("TNewCheckListBox").Click 31,10
Window("Audacity 1.3 Beta").WinObject("Next >").Click 37,3
回放后就一直停在对话框"Select Setup Language", 不会自动按OK.而后就出现了一个Run Error提示.
D:\QTPTests\errors\installerror.jpg |
|