Make it easier to select a custom proxy object with a class name different from the QML type
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Autopilot |
Fix Committed
|
Undecided
|
Christopher Lee |
Bug Description
Since bug #1210260 was fixed, custom proxy objects can now extend the classmethod validate_
However it's still hard to get it right. I keep getting other objects matching the validation, and in order to make it work I can't pass the class as the first parameter of select_single.
This should be easier and clearer. Lets say that I have many QML types 'ItemPage', each one with a different object name. If I want to make a different custom proxy object for each one, I should be able to do:
main_view.
main_view.
where TestPage1 and TestPage2 are not on the QML tree.
Related branches
- PS Jenkins bot: Approve (continuous-integration)
- Max Brustkern (community): Approve
-
Diff: 168 lines (+110/-2)4 files modifiedautopilot/introspection/dbus.py (+38/-1)
autopilot/tests/functional/test_input_stack.py (+1/-1)
autopilot/tests/functional/test_introspection_features.py (+29/-0)
autopilot/tests/unit/test_introspection_dbus.py (+42/-0)
Changed in autopilot: | |
assignee: | nobody → Christopher Lee (veebers) |
Changed in autopilot: | |
status: | New → In Progress |
Fix committed into lp:autopilot at revision 567, scheduled for release in autopilot, milestone 1.4