@@ -80,7 +80,7 @@ class Dash(emulators.UnityEmulatorBase):
80 'No scope found with id {0}'.format(scope_id))
80 'No scope found with id {0}'.format(scope_id))
82 def _get_scope_from_loader(self, loader):
82 def _get_scope_from_loader(self, loader):
83− return loader.select_single(GenericScopeView)
83+ return loader.get_children()[0]
85 def _open_scope_scrolling(self, scope_loader):
85 def _open_scope_scrolling(self, scope_loader):
86 scroll = self._get_scroll_direction(scope_loader)
86 scroll = self._get_scroll_direction(scope_loader)
@@ -161,6 +161,7 @@ class GenericScopeView(emulators.UnityEmulatorBase):
161 raise emulators.UnityEmulatorException(
161 raise emulators.UnityEmulatorException(
162 'No category found with name {}'.format(category))
162 'No category found with name {}'.format(category))
164+class DashApps(emulators.UnityEmulatorBase):
164 def get_applications(self, category):
165 def get_applications(self, category):
165 """Return the list of applications on a category.
166 """Return the list of applications on a category.
@@ -176,3 +177,11 @@ class GenericScopeView(emulators.UnityEmulatorBase):
176 if card.objectName != 'cardToolCard':
177 if card.objectName != 'cardToolCard':
177 result.append(card)
178 result.append(card)
178 return result
179 return result
181+ def _get_category_element(self, category):
183+ return self.wait_select_single(
184+ 'Base', objectName='dashCategory{}'.format(category))
185+ except dbus.StateNotFoundError:
186+ raise emulators.UnityEmulatorException(
187+ 'No category found with name {}'.format(category))