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

## Public Member Functions

def | __init__
def | get_applications_grid
def | get_application_icon
def | get_scope
def | open_scope
def | enter_search_query

## Public Attributes

| dash_content_list

## Detailed Description

    An emulator that understands the Dash.

Definition at line 33 of file dash.py.

## Constructor & Destructor Documentation

def unity8.shell.emulators.dash.Dash.__init__ | ( |  | self,
|  |  | args
| ) |  |

    An emulator that understands the Dash.

Definition at line 36 of file dash.py.

def __init__(self, *args):
super(Dash, self).__init__(*args)
self.dash_content_list = self.wait_select_single(
'QQuickListView', objectName='dashContentList')
unity8.shell.emulators.dash.Dash.dash_content_list
dash_content_list
Definition: dash.py:38
unity8.shell.emulators.dash.Dash.__init__
def __init__
Definition: dash.py:36

## Member Function Documentation

def unity8.shell.emulators.dash.Dash.get_application_icon | ( |  | self,
|  |  | text
| ) |  |

    Returns a 'Tile' icon that has the text 'text' from the application
    grid.

    :param text: String containing the text of the icon to search for.

Definition at line 46 of file dash.py.

def get_application_icon(self, text):
"""Returns a 'Tile' icon that has the text 'text' from the application
grid.
:param text: String containing the text of the icon to search for.
"""
app_grid = self.get_applications_grid()
resp_grid = app_grid.wait_select_single('ResponsiveGridView')
return resp_grid.select_single('Tile', text=text)
unity8.shell.emulators.dash.Dash.get_applications_grid
def get_applications_grid
Definition: dash.py:41
unity8.shell.emulators.dash.Dash.get_application_icon
def get_application_icon
Definition: dash.py:46

def unity8.shell.emulators.dash.Dash.open_scope | ( |  | self,
|  |  | scope_id
| ) |  |

    Open a dash scope.

    :parameter scope_id: The id of the scope.
    :return: The scope.

Definition at line 62 of file dash.py.

def open_scope(self, scope_id):
"""Open a dash scope.
:parameter scope_id: The id of the scope.
:return: The scope.
"""
scope_loader = self._get_scope_loader(scope_id)
if scope_loader.isCurrent:
logger.info('The scope is already open.')
return self._get_scope_from_loader(scope_loader)
else:
return self._open_scope_scrolling(scope_loader)
unity8.shell.emulators.dash.Dash.open_scope
def open_scope
Definition: dash.py:62
unity8.shell.emulators.dash.Dash._get_scope_loader
def _get_scope_loader
Definition: dash.py:76
unity8.shell.emulators.dash.Dash._open_scope_scrolling
def _open_scope_scrolling
Definition: dash.py:87
unity8.shell.emulators.dash.Dash._get_scope_from_loader
def _get_scope_from_loader
Definition: dash.py:84

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

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