diff --git a/tir/technologies/poui_internal.py b/tir/technologies/poui_internal.py index 41769d84..5d49e238 100644 --- a/tir/technologies/poui_internal.py +++ b/tir/technologies/poui_internal.py @@ -3780,7 +3780,6 @@ def click_select(self, field, value, position): :param position: Position which element is located. - **Default:** 1 """ - position -= 1 main_element = None trated_field = field.strip() select_bs = [] @@ -3796,7 +3795,7 @@ def click_select(self, field, value, position): po_select_bs = self.web_scrap(term='po-select', scrap_type=enum.ScrapType.CSS_SELECTOR, main_container='body') if po_select_bs: - select_element_filtred = next(iter(list(filter(lambda x: self.filter_label_element(trated_field, x), po_select_bs))), None) + select_element_filtred = next(iter(list(filter(lambda x: self.filter_label_element(trated_field, x, position), po_select_bs))), None) if select_element_filtred: self.switch_to_iframe() select_bs = select_element_filtred.find_next('select')