Fixed chat element locator

Signed-off-by: yevh-berdnyk <ie.berdnyk@gmail.com>
This commit is contained in:
yevh-berdnyk 2018-11-14 17:15:06 +01:00
parent d86ebe3c9b
commit 68d6255d44
No known key found for this signature in database
GPG Key ID: E9B425FDFC4DEA9C
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ class ChatElement(BaseButton):
super(ChatElement, self).__init__(driver)
self.username = username_part
self.locator = self.Locator.xpath_selector(
"//*[@content-desc='chat-item'][.//*[starts-with(@text,'%s')]]" % self.username)
"//*[@content-desc='chat-name-text'][starts-with(@text,'%s')]/.." % self.username)
def navigate(self):
from views.chat_view import ChatView