Giter Site home page Giter Site logo

delphiuiautomation's People

Contributors

markhumphreysjhc avatar mmarquee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

delphiuiautomation's Issues

TAutomationDesktop.GetDesktopWindow crashes because rootElement is nil

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.

TStringGrid example

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.

AutomatedPanel

[dcc32 Fatal Error] AutomatedControls2.dpk(44): F1026 File not found: 'AutomatedPanel.pas'

DBGrid

Do you have some plan to write something to automate TDBGrid component?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.