on xenial help sign in
Updated the get_applications_grid method.
commit7c193a62f3776914e726afe57116ff39a4f39cf7 authorLeo Arias <leo.arias@canonical.com> dateSun 2 Mar 2014, 00:36 (13 years ago) parent50a33fd
1 file changed+4−6
tests/autopilot/unity8/shell/emulators/dash.py+4−6
tests/autopilot/unity8/shell/emulators/dash.py+4−6
@@ -36,11 +36,9 @@ class Dash(emulators.UnityEmulatorBase):
3636 self.dash_content_list = self.wait_select_single(
3737 'QQuickListView', objectName='dashContentList')
3838
39− def get_home_applications_grid(self):
40− get_grid = self.get_scope('home').wait_select_single(
41− "GenericFilterGrid",
42− objectName="applications.scope"
43− )
39+ def get_applications_grid(self):
40+ get_grid = self.get_scope('clickscope').wait_select_single(
41+ 'DashFilterGrid', objectName='local')
4442 return get_grid
4543
4644 def get_application_icon(self, text):
@@ -50,7 +48,7 @@ class Dash(emulators.UnityEmulatorBase):
5048 :param text: String containing the text of the icon to search for.
5149
5250 """
53− app_grid = self.get_home_applications_grid()
51+ app_grid = self.get_applications_grid()
5452 resp_grid = app_grid.wait_select_single('ResponsiveGridView')
5553 return resp_grid.select_single('Tile', text=text)
5654