Unity 8
 All Classes Functions
unity8.shell.emulators.dash.Dash Class Reference
Inheritance diagram for unity8.shell.emulators.dash.Dash:
Collaboration diagram for unity8.shell.emulators.dash.Dash:

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 44 of file dash.py.

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 57 of file dash.py.

57 
58  def get_application_icon(self, text):
59  """Returns a 'Tile' icon that has the text 'text' from the application
60  grid.
61 
62  :param text: String containing the text of the icon to search for.
63 
64  """
65  app_grid = self.get_applications_grid()
66  resp_grid = app_grid.wait_select_single('ResponsiveGridView')
67  return resp_grid.select_single('Tile', text=text)
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 73 of file dash.py.

73 
74  def open_scope(self, scope_id):
75  """Open a dash scope.
76 
77  :parameter scope_id: The id of the scope.
78  :return: The scope.
79 
80  """
81  scope_loader = self._get_scope_loader(scope_id)
82  if scope_loader.isCurrent:
83  logger.info('The scope is already open.')
84  return self._get_scope_from_loader(scope_loader)
85  else:
86  return self._open_scope_scrolling(scope_loader)

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