diff --git a/test/appium/tests/critical/chats/test_public_chat_browsing.py b/test/appium/tests/critical/chats/test_public_chat_browsing.py index 35d11f1d0e..6b3abc13d2 100644 --- a/test/appium/tests/critical/chats/test_public_chat_browsing.py +++ b/test/appium/tests/critical/chats/test_public_chat_browsing.py @@ -502,6 +502,7 @@ class TestCommunityMultipleDeviceMerged(MultipleSharedDeviceTestCase): @marks.testrail_id(702840) def test_community_emoji_send_copy_paste_reply(self): + self.channel_1.navigate_back_to_chat_view() emoji_name = random.choice(list(emoji.EMOJI_UNICODE)) emoji_unicode = emoji.EMOJI_UNICODE[emoji_name] emoji_message = emoji.emojize(emoji_name) diff --git a/test/appium/views/base_element.py b/test/appium/views/base_element.py index bef5641e11..db254dcd75 100644 --- a/test/appium/views/base_element.py +++ b/test/appium/views/base_element.py @@ -87,7 +87,11 @@ class BaseElement(object): return self.driver.find_elements(self.by, self.locator) def click(self): - self.find_element().click() + element = self.find_element() + try: + element.click() + except AttributeError: + raise Exception("Element: %s\n Element type: %s" % (element, type(element))) self.driver.info('Tap on found: %s' % self.name) return self.navigate() @@ -102,7 +106,11 @@ class BaseElement(object): desired_element.name, desired_element.by, desired_element.locator)) while not desired_element.is_element_displayed(1) and counter <= attempts: try: - self.find_element().click() + el = self.find_element() + try: + el.click() + except AttributeError: + raise Exception("Element: %s\n Element type: %s" % (el, type(el))) return self.navigate() except (NoSuchElementException, TimeoutException): counter += 1