Python 如何解决错误:UiTestAutomationBridge错误返回空根节点
我正在尝试查找三星S6 edge设备上的“呼叫接受”和“呼叫拒绝”元素,以防传入或传出呼叫 但是,我得到了一个错误: UiTestAutomationBridge错误返回的根节点 下面是我的代码Python 如何解决错误:UiTestAutomationBridge错误返回空根节点,python,appium,android-uiautomator,Python,Appium,Android Uiautomator,我正在尝试查找三星S6 edge设备上的“呼叫接受”和“呼叫拒绝”元素,以防传入或传出呼叫 但是,我得到了一个错误: UiTestAutomationBridge错误返回的根节点 下面是我的代码 from subprocess import call def host_exec(): try: call(["adb", "shell", "uiautomator", "dump", "
from subprocess import call
def host_exec():
try:
call(["adb", "shell", "uiautomator", "dump", "/sdcard/dump.xml"])
except RuntimeError:
print >>sys.stderr
dq = host_exec()
我正在使用:
- python 2.7
- android studio 2.1.1
- 附录1.6.5