@@ -117,28 +117,28 @@ class Dash(emulators.UnityEmulatorBase):
117117 @autopilot_logging.log_action(logger.info)
118118 def _scroll_to_left_scope(self):
119119 original_index = self.dash_content_list.currentIndex
120− # Scroll on the dash bar, because some scopes have contents that can be
121− # scrolled horizontally.
122− panel = self.select_single('DashBar').select_single('Panel')
123− start_x = panel.width / 3
124− stop_x = panel.width / 3 * 2
125− start_y = stop_y = panel.globalRect.y + panel.height / 2
120+ # Scroll on the border of the page header panel, because some scopes
121+ # have contents that can be scrolled horizontally.
122+ page_header = self.select_single('PageHeader')
123+ border = page_header.select_single('QQuickBorderImage')
124+ start_x = border.width / 3
125+ stop_x = border.width / 3 * 2
126+ start_y = stop_y = border.globalRect.y + border.height / 2
126127 self.pointing_device.drag(start_x, start_y, stop_x, stop_y)
127128 self.dash_content_list.currentIndex.wait_for(original_index - 1)
128− panel.opened.wait_for(False)
129129
130130 @autopilot_logging.log_action(logger.info)
131131 def _scroll_to_right_scope(self):
132132 original_index = self.dash_content_list.currentIndex
133− # Scroll on the dash bar panel, because some scopes have contents that
134− # can be scrolled horizontally.
135− panel = self.select_single('DashBar').select_single('Panel')
136− start_x = panel.width / 3 * 2
137− stop_x = panel.width / 3
138− start_y = stop_y = panel.globalRect.y + panel.height / 2
133+ # Scroll on the border of the page header panel, because some scopes
134+ # have contents that can be scrolled horizontally.
135+ page_header = self.select_single('PageHeader')
136+ border = page_header.select_single('QQuickBorderImage')
137+ start_x = border.width / 3 * 2
138+ stop_x = border.width / 3
139+ start_y = stop_y = border.globalRect.y + border.height / 2
139140 self.pointing_device.drag(start_x, start_y, stop_x, stop_y)
140141 self.dash_content_list.currentIndex.wait_for(original_index + 1)
141− panel.opened.wait_for(False)
142142
143143
144144class GenericScopeView(emulators.UnityEmulatorBase):