diff --git a/test/appium/views/start_new_chat_view.py b/test/appium/views/start_new_chat_view.py index 7aa66d9fdc..0573870d2d 100644 --- a/test/appium/views/start_new_chat_view.py +++ b/test/appium/views/start_new_chat_view.py @@ -63,7 +63,7 @@ class EnterUrlEditbox(BaseEditBox): class UsernameCheckbox(BaseButton): def __init__(self, driver, username): super(UsernameCheckbox, self).__init__(driver) - self.locator = self.Locator.xpath_selector("//*[@text='%s']/../../android.widget.CheckBox" % username) + self.locator = self.Locator.xpath_selector("//*[@text='%s']" % username) class InviteFriendsButton(BaseButton):