diff --git a/airgun/widgets.py b/airgun/widgets.py index fc828e14f..7378ef7ec 100644 --- a/airgun/widgets.py +++ b/airgun/widgets.py @@ -2405,6 +2405,7 @@ class BaseMultiSelect(BaseSelect, Dropdown): BUTTON_LOCATOR = './/button[@aria-label="Options menu"]' OUIA_COMPONENT_TYPE = "PF4/Select" + SELECTED_ITEMS_LIST = './/div[@class="pf-c-chip-group"]' def item_select(self, items, close=True): """Opens the Dropdown and selects the desired items. @@ -2436,6 +2437,12 @@ def fill(self, items): finally: self.close() + def read(self): + try: + return self.browser.text(self.SELECTED_ITEMS_LIST).split(' ') + except NoSuchElementException: + return None + class InventoryBootstrapSwitch(Widget): """Checkbox-like Switch control, representing On and Off state. But with