|
通过下面的语句能访问对象内部属性吗:
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. |
|