ubuntu-sdk-bugs team mailing list archive
-
ubuntu-sdk-bugs team
-
Mailing list archive
-
Message #05777
[Bug 1552773] [NEW] _optionselector.py looks for Label delegates instead of UCLabel
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