Details
-
Suggestion
-
Resolution: Unresolved
-
P2: Important
-
5.0.0
-
None
Description
Currently in order to find the object under test in qmltest you have to go via objectName. This is a little cumbersome, because it means that your production code is filled with objectNames that have no benefit other than as test hooks. A more elegant solution would be preferable - perhaps QmlTest could find them using a QmlContext and an id? Or there could be a way to find elements declaratively (the first MouseArea in MyApp.qml with an id matching theArea and width:20).
Attachments
Issue Links
- relates to
-
QTBUG-113264 Add function to TestCase that allows finding a visual or QObject child recursively based on a given callback
- Reported