Autopilot cannot find OtObjects by objectName

Bug #1447391 reported by Josh Arenson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Autopilot
New
Undecided
Unassigned
Autopilot Qt Support
New
Undecided
Unassigned

Bug Description

When trying to select an object by objectName, QtObjects do not work.

Steps to reproduce

1. Run one of the below qmlfiles with
    $ QT_LOAD_TESTABILITY=1 qmlscene <filename.qml>
2. Run autopilot vis and select the app you started in step 1.

With QtObject
http://pastebin.ubuntu.com/10868756/
    - OtObject doesn't show up in autopilot vis

With Item
http://pastebin.ubuntu.com/10868763/
    - Exact same code, but wrapped in an Item instead, shows up in autopilot vis

This is causing autopilot tests to fail when calling select_single(objectName='someQtObject').

Revision history for this message
Christopher Lee (veebers) wrote :

I haven't had the chance to dig into this yet, but I would presume that this is either:

  - Due to some optimisation made by the qml engine and libautopilot-qt can't actually see that object
or

  - It is related to this bug[1] where libautopilot-qt doesn't export (all) non-visual objects.

I need to do a little more research before I can suggest a fix.
At any rate this is related to the libautopilot-qt project so I'll add that to this bug.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.