mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-27 00:49:39 +00:00
Fixed chat element locator
Signed-off-by: yevh-berdnyk <ie.berdnyk@gmail.com>
This commit is contained in:
parent
d86ebe3c9b
commit
68d6255d44
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user