Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to resolve ERROR: null root node returned by UiTestAutomationBridge error

I am trying to locate "call accept" and "call reject" elements on Samsung S6 edge device in case of an incoming or outgoing call.

However, I'm getting the error:

root node returned by UiTestAutomationBridge error

Below is my code

from subprocess import call
def host_exec():
    try:
        call(["adb", "shell", "uiautomator", "dump", "/sdcard/dump.xml"])
    except RuntimeError:
        print >>sys.stderr

dq = host_exec()

I am using:

  • python 2.7
  • android studio 2.1.1
  • appium 1.6.5
like image 822
pankaj mishra Avatar asked Feb 05 '26 17:02

pankaj mishra


1 Answers

Its a known bug that can usually be solved by simple rebooting the Device

like image 99
Tim Avatar answered Feb 09 '26 08:02

Tim