Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@cache_return
def xpath(self) -> xpath.XPath:
return xpath.XPath(self)
@cache_return
def watcher(self) -> Watcher:
return Watcher(self)
@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)
@cache_return
def swipe_ext(self):
return SwipeExt(self.server)
@cache_return
def widget(self):
from uiautomator2.widget import Widget
return Widget(self)
@cache_return
def settings(self) -> Settings:
return Settings(self)
@cache_return
def image(self) -> "uiautomator2.image.ImageX":
from uiautomator2 import image as _image
return _image.ImageX(self)