How to use the uiautomator2.utils.cache_return function in uiautomator2

To help you get started, we’ve selected a few uiautomator2 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github openatx / uiautomator2 / uiautomator2 / __init__.py View on Github external
    @cache_return
    def xpath(self) -> xpath.XPath:
        return xpath.XPath(self)
github openatx / uiautomator2 / uiautomator2 / __init__.py View on Github external
    @cache_return
    def watcher(self) -> Watcher:
        return Watcher(self)
github openatx / uiautomator2 / uiautomator2 / __init__.py View on Github external
    @cache_return
    def taobao(self):
        try:
            import uiautomator2_taobao as tb
        except ImportError:
            raise RuntimeError("This method can only use inside alibaba network")
        return tb.Taobao(self)
github openatx / uiautomator2 / uiautomator2 / session.py View on Github external
    @cache_return
    def swipe_ext(self):
        return SwipeExt(self.server)
github openatx / uiautomator2 / uiautomator2 / session.py View on Github external
    @cache_return
    def widget(self):
        from uiautomator2.widget import Widget
        return Widget(self)
github openatx / uiautomator2 / uiautomator2 / __init__.py View on Github external
    @cache_return
    def settings(self) -> Settings:
        return Settings(self)
github openatx / uiautomator2 / uiautomator2 / __init__.py View on Github external
    @cache_return
    def image(self) -> "uiautomator2.image.ImageX":
        from uiautomator2 import image as _image
        return _image.ImageX(self)