Fix critical e2e

Signed-off-by: Serhy <sergii@status.im>
This commit is contained in:
Serhy 2019-06-25 20:22:00 +03:00
parent 8ac0d6b92b
commit 7a7bafd5ef
No known key found for this signature in database
GPG Key ID: 5D7C4B9E2B6F500B
1 changed files with 1 additions and 1 deletions

View File

@ -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)