@@ -19,6 +19,7 @@
1919
2020import logging
2121
22+import ubuntuuitoolkit
2223from autopilot import logging as autopilot_logging
2324from autopilot import input
2425
@@ -169,3 +170,20 @@ class QQuickView(emulators.UnityEmulatorBase):
169170class IndicatorPage(emulators.UnityEmulatorBase):
170171
171172 """Autopilot helper for the IndicatorPage component."""
173+
174+
175+class QQuickFlickable(ubuntuuitoolkit.QQuickFlickable):
176+
177+ def swipe_to_x_end(self):
178+ if not self.atXEnd:
179+ containers = self._get_containers()
180+ while not self.atXEnd:
181+ self.swipe_to_show_x_end(containers)
182+
183+ def swipe_to_show_x_end(self, containers):
184+ start_y = stop_y = self.globalRect.y + (self.globalRect.height // 2)
185+ start_x = self.globalRect.x + self.globalRect.width - 5
186+ stop_x = self.globalRect.x + 5
187+ self._slow_drag(start_x, stop_x, start_y, stop_y)
188+ self.dragging.wait_for(False)
189+ self.moving.wait_for(False)