jhc-systems / delphiuiautomation Goto Github PK
View Code? Open in Web Editor NEWDelphi classes the wrap the MS UIAutomation library
License: Apache License 2.0
Delphi classes the wrap the MS UIAutomation library
License: Apache License 2.0
Cannot find the TCheckBoxes in the sample project.
I created a Delphi test-project (DUnit) and included the DelphiUIAutomation-library. As soon as I call TAutomationDesktop.GetDesktopWindow the test-application crashes because the UDelphiUIAutomation-library accesses the global variable rootElement which is nil.
My code:
unit TestMainFormU;
interface
uses
TestFramework,
DelphiUIAutomation.Automation,
DelphiUIAutomation.Window ,
DelphiUIAutomation.Client,
DelphiUIAutomation.Desktop,
UIAutoWrapper;
type
TestMainForm = class(TTestCase)
strict private
FApplication: IAutomationApplication;
public
procedure SetUp; override;
procedure TearDown; override;
published
procedure Example;
end;
implementation
{ TestIAutomationBase }
procedure TestMainForm.Example;
var
MainWindow: IAutomationWindow;
begin
MainWindow := TAutomationDesktop.GetDesktopWindow('DemoApp', 5000); // crash
MainWindow.GetButton('OK').Click;
end;
procedure TestMainForm.SetUp;
begin
inherited;
FApplication := TAutomationApplication.LaunchOrAttach('..\Binary\DemoApp.exe', '');
FApplication.WaitWhileBusy;
end;
procedure TestMainForm.TearDown;
begin
inherited;
FApplication.Kill;
end;
initialization
RegisterTest(TestMainForm.Suite);
end.
The line where is crashes (DelphiUIAutomation.Desktop:158):
rootElement.FindAll(TreeScope_Children, condition.getCondition, collection);
Any suggestions? Is there something I am doing wrong or is there a known issue? The call to TAutomationApplication.LaunchOrAttach() works just fine and starts the application.
Support for keyboard input
Cannot get text from textboxes!
Hi, I have read the readme file but I can't understand how use the TStringGrid functionality. Can you explain with an example? I need to create a Delphi program able to read TStringGrid rows of another running program.
Cannot find the radio buttons in the sample project.
I need read a caption from TLabel, but is not supported ?
Charles
I need "TPopupMenu" support.
How can I do that?
Thanks.
Example code leaks memory.
[dcc32 Fatal Error] AutomatedControls2.dpk(44): F1026 File not found: 'AutomatedPanel.pas'
Do you have some plan to write something to automate TDBGrid component?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.