Public bug reported:

The autopilot helper for optionselector seeks Label delegates, rather than 
UCLabel delegates.
   
----------
   def get_selected_text(self):
        """gets the text of the currently selected item"""
        option_selector_delegate = self.select_single(
            'OptionSelectorDelegate', focus='True')
        current_label = option_selector_delegate.select_single(
            'Label', visible='True')
        return current_label.text

    def get_current_label(self):
        """gets the text of the currently selected item"""
        option_selector_delegate = self.select_single(
            'OptionSelectorDelegate', focus='True')
        current_label = option_selector_delegate.select_single(
            'Label', visible='True')
        return current_label
----------

Those select_single calls should use UCLabel.

** Affects: ubuntu-ui-toolkit (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: autopilot-helper

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1552773

Title:
  _optionselector.py looks for Label delegates instead of UCLabel

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1552773/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to