@@ -21,13 +21,13 @@ import logging
2121
2222import autopilot.logging
2323
24−from unity8.shell.emulators import UnityEmulatorBase
24+from unity8.shell import emulators
2525
2626
2727logger = logging.getLogger(__name__)
2828
2929
30−class Launcher(UnityEmulatorBase):
30+class Launcher(emulators.UnityEmulatorBase):
3131
3232 """An emulator that understands the Launcher."""
3333
@@ -64,3 +64,12 @@ class Launcher(UnityEmulatorBase):
6464 self.shown.wait_for(False)
6565 else:
6666 logger.debug('The launcher is already closed.')
67+
68+ @autopilot.logging.log_action(logger.debug)
69+ def click_dash_icon(self):
70+ if self.shown:
71+ dash_icon = self.select_single(
72+ 'QQuickImage', objectName='dashItem')
73+ self.pointing_device.click_object(dash_icon)
74+ else:
75+ raise emulators.UnityEmulatorException('The launcher is closed.')