← Back to team overview

touch-packages team mailing list archive

[Bug 1031011] Re: Introspecting Dash results raises Exception

 

** Changed in: unity (Ubuntu)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity in Ubuntu.
https://bugs.launchpad.net/bugs/1031011

Title:
  Introspecting Dash results raises Exception

Status in Autopilot:
  Invalid
Status in Unity:
  Triaged
Status in “unity” package in Ubuntu:
  Confirmed

Bug description:
  #!/usr/bin/env python

  from __future__ import absolute_import

  from autopilot.emulators.X11 import Keyboard
  from unity.emulators.dash import Dash
  from time import sleep

  def dash():
      """ Dash tests """
      # Get dash
      dash = Dash()
      # Show the dash
      dash.ensure_visible(clear_search=True)
      # Show Application lens
      dash.reveal_application_lens()
      # Search for Terminal
      keyboard = Keyboard()
      keyboard.type('Terminal')
      # Wait
      sleep(10)
      # Get active lens
      lens = dash.get_current_lens()
      # Get Installed category
      category = lens.get_category_by_name('Installed')
      # Get results of Installed applications
      results = category.get_results()
      for result in results:
          print result.__state

  if __name__ == '__main__':
      dash()

  ---

  Xlib.protocol.request.QueryExtension
  Xlib.protocol.request.QueryExtension
  Backend     : gconf
  Integration : true
  Profile     : unity
  Adding plugins
  Initializing core options...done
  Traceback (most recent call last):
    File "./test_dash.py", line 33, in <module>
      dash()
    File "./test_dash.py", line 30, in dash
      print result.name
    File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 247, in __getattr__
      self.refresh_state()
    File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 222, in refresh_state
      name, new_state = self.get_new_state()
    File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 278, in get_new_state
      raise StateNotFoundError(self.__class__.__name__, self.id)
  autopilot.introspection.dbus.StateNotFoundError: State not found for class with name 'Result' and id '33683'.

To manage notifications about this bug go to:
https://bugs.launchpad.net/autopilot/+bug/1031011/+subscriptions