diff --git a/src/Selenium2Library/keywords/_selectelement.py b/src/Selenium2Library/keywords/_selectelement.py index a1540bf16..1cc6bdf66 100644 --- a/src/Selenium2Library/keywords/_selectelement.py +++ b/src/Selenium2Library/keywords/_selectelement.py @@ -23,7 +23,7 @@ def get_selected_list_label(self, locator): locating elements. """ select = self._get_select_list(locator) - return select.first_selected_option.get_attribute('label') + return select.first_selected_option.text def get_selected_list_labels(self, locator): """Returns the visible labels of selected elements (as a list) from the select list identified by `locator`.