Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/355.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何解决错误:UiTestAutomationBridge错误返回空根节点_Python_Appium_Android Uiautomator - Fatal编程技术网

Python 如何解决错误: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", "

我正在尝试查找三星S6 edge设备上的“呼叫接受”和“呼叫拒绝”元素,以防传入或传出呼叫

但是,我得到了一个错误:

UiTestAutomationBridge错误返回的根节点

下面是我的代码

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

这是一个已知的错误,通常可以通过简单地重新启动设备来解决

没问题^^!这是一个已知的错误,可以通过简单地重新启动设备来解决