From 7a7bafd5ef4074778d9b49f59f52c2f52098773b Mon Sep 17 00:00:00 2001 From: Serhy Date: Tue, 25 Jun 2019 20:22:00 +0300 Subject: [PATCH] Fix critical e2e Signed-off-by: Serhy --- test/appium/views/chat_view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/appium/views/chat_view.py b/test/appium/views/chat_view.py index fe99af5472..4118be9e51 100644 --- a/test/appium/views/chat_view.py +++ b/test/appium/views/chat_view.py @@ -296,7 +296,7 @@ class ChatElementByText(BaseText): class Username(BaseText): def __init__(self, driver, parent_locator): super(Username, self).__init__(driver) - self.locator = self.Locator.xpath_selector(parent_locator + "/*[1][name()='android.widget.TextView']") + self.locator = self.Locator.xpath_selector(parent_locator + "/*[1]/android.widget.TextView") return Username(self.driver, self.locator.value)