Modify picker tool to ignore certain objects
-
I've been using Squish for years and on some apps the picker tool has no problem finding the object you click on. But on the current app I'm working on, it can't find almost anything useful. Instead it gets stuck on some container object that encompasses almost the whole UI. I CAN drill down in the Application Objects to find what I'm looking for but test writers cannot be expected to go through this hassle for every control in the UI.
How can I modify the picker logic to ignore certain objects so it can find the actual control the user clicks on?
Using Squish for QT version 8. The AUT in question is a QML app.
-
You can modify ControlsExt.qml to do this: https://doc.qt.io/squish/how-to-use-the-qml-extension-api.html#qml-extension-api
Modify the isIgnored function in the qml file.
-