All Classes Functions Properties
unity8.shell.emulators.main_window.QQuickView Class Reference
Inheritance diagram for unity8.shell.emulators.main_window.QQuickView:
[legend]
Collaboration diagram for unity8.shell.emulators.main_window.QQuickView:
[legend]

## Public Member Functions

def | get_greeter
def | get_greeter_content_loader
def | get_login_loader
def | get_login_list
def | get_hud
def | get_hud_showable
def | get_hud_show_button
def | get_hud_edge_drag_area
def | get_dash
def | get_bottombar
def | get_launcher
def | get_pinPadLoader
def | get_pinPadButton
def | get_lockscreen
def | get_pinentryField
def | open_indicator_page
def | get_shell_background
def | show_dash_swiping
def | get_current_focused_app_id
def | search

## Detailed Description

    An emulator class that makes it easy to interact with the shell

Definition at line 34 of file main_window.py.

## Member Function Documentation

def unity8.shell.emulators.main_window.QQuickView.get_current_focused_app_id | ( |  | self | ) |

    Return the id of the focused application.

Definition at line 134 of file main_window.py.

def get_current_focused_app_id(self):
"""Return the id of the focused application."""
return self.select_single('Shell').focusedApplicationId
unity8.shell.emulators.main_window.QQuickView.get_current_focused_app_id
def get_current_focused_app_id
Definition: main_window.py:134

def unity8.shell.emulators.main_window.QQuickView.open_indicator_page | ( |  | self,
|  |  | indicator_name
| ) |  |

    Swipe to open the indicator, wait until it's open.

    :returns: The indicator page.

Definition at line 104 of file main_window.py.

def open_indicator_page(self, indicator_name):
"""Swipe to open the indicator, wait until it's open.
:returns: The indicator page.
"""
widget = self._get_indicator_widget(indicator_name)
start_x, start_y = input.get_center_point(widget)
end_x = start_x
end_y = self.height
self.pointing_device.drag(start_x, start_y, end_x, end_y)
self.wait_select_single('Indicators', fullyOpened=True)
return self._get_indicator_page(indicator_name)
unity8.shell.emulators.main_window.QQuickView.open_indicator_page
def open_indicator_page
Definition: main_window.py:104
unity8.shell.emulators.main_window.QQuickView._get_indicator_widget
def _get_indicator_widget
Definition: main_window.py:91
unity8.shell.emulators.main_window.QQuickView._get_indicator_page
def _get_indicator_page
Definition: main_window.py:97

def unity8.shell.emulators.main_window.QQuickView.show_dash_swiping | ( |  | self | ) |

    Show the dash swiping from the left.

Definition at line 122 of file main_window.py.

def show_dash_swiping(self):
"""Show the dash swiping from the left."""
width = self.width
height = self.height
start_x = 0
start_y = height // 2
end_x = width
end_y = start_y
self.pointing_device.drag(start_x, start_y, end_x, end_y)
return self.get_dash()
unity8.shell.emulators.main_window.QQuickView.show_dash_swiping
def show_dash_swiping
Definition: main_window.py:122
unity8.shell.emulators.main_window.QQuickView.get_dash
def get_dash
Definition: main_window.py:64

The documentation for this class was generated from the following file:

- tests/autopilot/unity8/shell/emulators/main_window.py