Good morning,
I am trying to record actions on a Desktop application but the Record function does not detect the objects; the screen is composed by buttons and text but the record (and also the spy) function does not detect anithing in the screen. Only top bar of the application is detected with close/minimize buttons for the window.
The application, and related objects, is written in QT framework c++ by means of Visual Studio.
I am using Katalon 9.x
On another similar application I also received: org.openqa.selenium.WebDriverException: An unknown error occurred in the remote end while processing the command. (WARNING: The server did not provide any stacktrace information)
Welcome to our community. Have you ever been able to detect it successfully? Can you please help share your code, error log, and steps to reproduce? Thank you
I open Katalon Studio, I access the Record Windows Actions function Ă Windows recoreder, I edit WinAppDriver URL http://127.0.0.1:4723/ and capabilities ms:waitForAppLaunch value 25.
I put as Application File the path of the .exe and in the Application Title the name of the application window.
I press Start to recordĂ the application starts, in the View section the application screen is displayed, but only buttons of the application top bar are detected by the recording function; the QML objects composing the application functionalities (written in QT framework) are not detected. I also try to press on Refresh Screen but nothing changes.
I do not receive any errors but not object are detected.
To resolve the issue of Katalon Studio not detecting objects in a QT-based Windows desktop application:
1. Verify QT Accessibility Settings
Ensure the QT application exposes UI elements to accessibility tools:
Work with Developers: Request they add AccessibleName or AutomationId properties to QT controls in the code:
// Example for a QPushButton
QPushButton *button = new QPushButton("Submit", this);
button->setAccessibleName("submitButton"); // Mandatory for detection
Enable QT Automation Support: The app may need the QAxContainer module or compile flags for UI automation.
2. Use Inspection Tools
Confirm if elements are detectable by Windows automation frameworks:
I tried with your solution to set setAccessibleName but of course it works only for the specific QML element.
I solved assigning the accessibility property to the type (es. graphical) of QML object instead. In this way It worked for all the QML object of that type.