Use Appium to drive a Win32 c++ application which handles its own UI

  appium, c++, windows-application-driver

We have an win32 windows application which creates windows and (mainly) handles its own UI.

It does this by registering a windows class with windows using RegisterClass and creates windows using CreateWindowEx.

We then handle the windows messages and control all interaction in the WndProc method e.g.drawing things onto screens using WM_PAINT and handling WM_MBUTTONDOWN etc.

I can use Appium with WinAppDriver quite happily to start up and close the application but (unsurprisingly) it reports back no App Source or Element Tree for me to locate and automate.

Below is an Example of my application opened by appium desktop and viewed in the inspector.

Example of my application opened by appium desktop and viewed in the inspector

Is it possible to code into my application something that informs Appium (and any other accessibility tool for that matter) what my application contains so that ultimately I handle the webdriver commands myself?

Source: Windows Questions C++

LEAVE A COMMENT