qtp delphi中下拉列表识别成为了坐标
Window("设置").WinObject("TtsGrid").Click 250,35TtsGrid这个在qtp中没有。是我添加进去的。但我不知道属性是多少
应该是个下拉列表框。但我点击的时候每次都是选取的是坐标值!
这个应该怎么办?
QTP9.2,Delphi是8.2的! 通过下面的语句能访问对象内部属性吗:
Window("设置").WinObject("TtsGrid").Object.
你可能要按照下面的方法重新编译一下Delphi的项目(在QTP10,QTP9.2有可能不一样,具体看帮助文档):
Add the <QuickTest Professional Installation folder>\dat\Extensibility\Delphi folder to your Delphi project search path or copy the contents of the <QuickTest Professional Installation folder>\dat\Extensibility\Delphi folder to your project folder.
Add MicDelphiAgent to the Uses section of your application's project file (project.dpr) as shown in the example below:
program flight;
uses
MicDelphiAgent,
Forms,
Windows;
($R*.RES)
begin
Application.Initialize
Application.Title :='Flight Reservation';
Application.Run;
end.
Compile your Delphi project.
页:
[1]