autopilot sees two instances of QQuickWindow
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Autopilot Qt Support |
New
|
Low
|
Unassigned | ||
webbrowser-app (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Around the same time as the transition to autopilot 1.4, a test in webbrowser-app’s test suite started failing reliably on otto (and sometimes on mako too).
See https:/
The problem is that the test does this:
window = self.app.
and this raised the following exception:
ValueError: More than one item was returned for query
It appears autopilot is seeing two instances of QQuickWindow (as evidenced by replacing select_single by select_many and printing out the output). The first one is the actual application’s window. The second one is not visible, its dimensions are 0×0, it has no children, but its parent is the same as the real window (the webbrowser-app object).
I have never been able to reproduce the error locally, so I have no clue where this window comes from, but this looks to me like a bug in autopilot-qt. Please re-assign accordingly if it’s not.
Attaching the full test output (the one linked to in the description) for the record.