diff --git a/src/com/dtmilano/android/viewclient.py b/src/com/dtmilano/android/viewclient.py index becaae5a..e39a77e4 100644 --- a/src/com/dtmilano/android/viewclient.py +++ b/src/com/dtmilano/android/viewclient.py @@ -3316,7 +3316,7 @@ def __parseTreeFromUiAutomatorDump(self, receivedXml): print("__parseTreeFromUiAutomatorDump(", receivedXml[:40], "...)", file=sys.stderr) parser = UiAutomator2AndroidViewClient(self.device, self.build[VERSION_SDK_PROPERTY], self.uiAutomatorHelper) try: - start_xml_index = receivedXml.index("<") + start_xml_index = receivedXml.index("") except ValueError: raise ValueError("received does not contain valid XML: " + receivedXml)