on xenial help sign in
Faster way to get to the scope loader we want
commit8c47040726ed2cc476dc56e5901dd4b7bc260104 authorAlbert Astals <albert.astals@canonical.com> dateTue 2 Dec 2014, 09:47 (12 years ago) parentbe59376
1 file changed+6−2
tests/autopilot/unity8/shell/emulators/dash.py+6−2
tests/autopilot/unity8/shell/emulators/dash.py+6−2
@@ -90,8 +90,12 @@ class Dash(emulators.UnityEmulatorBase):
9090
9191 def _get_scope_loader(self, scope_id):
9292 try:
93− return self.dash_content_list.wait_select_single(
94− 'QQuickLoader', scopeId=scope_id)
93+ aux = self.dash_content_list.get_children_by_type('QQuickItem')[0]
94+ for l in aux.get_children_by_type('QQuickLoader'):
95+ if (l.scopeId == scope_id):
96+ return l;
97+ raise emulators.UnityEmulatorException(
98+ 'No scope found with id {0}'.format(scope_id))
9599 except dbus.StateNotFoundError:
96100 raise emulators.UnityEmulatorException(
97101 'No scope found with id {0}'.format(scope_id))