diff --git a/test/appium/views/chat_view.py b/test/appium/views/chat_view.py index d4cbaafc91..25ea010b09 100644 --- a/test/appium/views/chat_view.py +++ b/test/appium/views/chat_view.py @@ -1242,8 +1242,13 @@ class ChatView(BaseView): self.show_images_button.click() self.allow_button.click_if_shown() self.allow_all_button.click_if_shown() - [self.get_image_by_index(i).click() for i in indexes] - self.images_confirm_selection_button.click() + confirm_button = self.images_confirm_selection_button + for i in indexes: + # ToDo: should be changed to just 1 click when https://github.com/status-im/status-mobile/issues/18872 when is fixed + self.get_image_by_index(i).click() + if not confirm_button.is_element_displayed(sec=3): + self.get_image_by_index(i).click() + confirm_button.click() self.chat_message_input.send_keys(description) self.send_message_button.click()