swipe to delete fix
Signed-off-by: Anton Danchenko <ant.danchenko@gmail.com>
This commit is contained in:
parent
83ef7746d4
commit
510961e333
|
@ -60,7 +60,7 @@ class ChatElement(BaseButton):
|
|||
class DeleteButton(BaseButton):
|
||||
def __init__(self, driver, parent_locator: str):
|
||||
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)
|
||||
|
||||
return DeleteButton(self.driver, self.locator.value)
|
||||
|
|
Loading…
Reference in New Issue