uiautomator
uiautomator copied to clipboard
Handlers are not calling for 'exists'
Handler is not calling if UI obj is not found using exists, but works fine with click. But watcher works fine for both.
@xiaocong Patched it using below code @767
def progressive_exists(self, exe_handlers=True):
'''check if the object exists in current window.'''
if exe_handlers and not self.jsonrpc.exist(self.selector):
# any handler returns True will break the left handlers
any(handler(self.device.server.handlers.get('device', None)) for handler in self.device.server.handlers['handlers'])
self.progressive_exists(exe_handlers=False)
return self.jsonrpc.exist(self.selector)
@property
def exists(self):
return self.progressive_exists()
I will check it. Thank you.
Any chance of fixing this?