Unity 8
 All Classes Functions Properties
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 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.

36 
37  def __init__(self, *args):
38  super(Dash, self).__init__(*args)
39  self.dash_content_list = self.wait_select_single(
40  'QQuickListView', objectName='dashContentList')

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.

46 
47  def get_application_icon(self, text):
48  """Returns a 'Tile' icon that has the text 'text' from the application
49  grid.
50 
51  :param text: String containing the text of the icon to search for.
52 
53  """
54  app_grid = self.get_applications_grid()
55  resp_grid = app_grid.wait_select_single('ResponsiveGridView')
56  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 62 of file dash.py.

62 
63  def open_scope(self, scope_id):
64  """Open a dash scope.
65 
66  :parameter scope_id: The id of the scope.
67  :return: The scope.
68 
69  """
70  scope_loader = self._get_scope_loader(scope_id)
71  if scope_loader.isCurrent:
72  logger.info('The scope is already open.')
73  return self._get_scope_from_loader(scope_loader)
74  else:
75  return self._open_scope_scrolling(scope_loader)

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