swipe to delete fix

Signed-off-by: Anton Danchenko <ant.danchenko@gmail.com>
This commit is contained in:
Anton Danchenko 2018-11-15 12:09:07 +02:00
parent 83ef7746d4
commit 510961e333
No known key found for this signature in database
GPG Key ID: C2D4819B698627E4
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ class ChatElement(BaseButton):
class DeleteButton(BaseButton): class DeleteButton(BaseButton):
def __init__(self, driver, parent_locator: str): def __init__(self, driver, parent_locator: str):
super(DeleteButton, self).__init__(driver) super(DeleteButton, self).__init__(driver)
locator_str = "/android.view.ViewGroup/*[@content-desc='icon']" locator_str = "/../../android.view.ViewGroup/*[@content-desc='icon']"
self.locator = self.Locator.xpath_selector(parent_locator + locator_str) self.locator = self.Locator.xpath_selector(parent_locator + locator_str)
return DeleteButton(self.driver, self.locator.value) return DeleteButton(self.driver, self.locator.value)