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
SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu.
https://bugs.launchpad.net/bugs/1552773
Title:
_optionselector.py looks for Label delegates instead of UCLabel
Status in ubuntu-ui-toolkit package in Ubuntu:
New
Bug description:
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1552773/+subscriptions
--
Mailing list: https://launchpad.net/~ubuntu-sdk-bugs
Post to : [email protected]
Unsubscribe : https://launchpad.net/~ubuntu-sdk-bugs
More help : https://help.launchpad.net/ListHelp