[W 220211 15:44:32 __init__:218] [pid:14568] atx-agent has something wrong, auto recovering

问题遇到的现象和发生背景

执行APP UI自动化脚本

问题相关代码,请勿粘贴截图

-- coding: utf-8 --

by Appetizer v1.4.17

import sys
if sys.version_info < (3,0):
print('Python2 is no longer supported since uiautomator2 1.3.1, upgrade to Python3 or use older version')
import uiautomator2 as u2
import time
import os
from datetime import datetime
serialno = r'127.0.0.1:62001' # device adb serial
apk = r'D:\APP\apk包\1.4\TMAPP20220210.apk'
output = os.getcwd()

d = u2.connect_usb(serialno)
print(d.info)
d.implicitly_wait(10.0)
d.xpath("//[@content-desc='TrackingMore']").click()
d.xpath("//[@resource-id='android:id/button2']").click()
d.xpath("//[@resource-id='android:id/content']/android.widget.FrameLayout[@index='0']/android.widget.FrameLayout[@index='0']/android.view.View[@index='1']/android.widget.FrameLayout[@index='0']/android.widget.LinearLayout[@index='0']/android.webkit.WebView[@index='0']/android.webkit.WebView[@index='0']/android.view.View[@index='5']/android.view.View[@index='3']/android.view.View[@index='0']").click()
d.xpath("//[@resource-id='android:id/content']/android.widget.FrameLayout[@index='0']/android.widget.FrameLayout[@index='0']/android.view.View[@index='1']/android.widget.FrameLayout[@index='0']/android.widget.LinearLayout[@index='0']/android.webkit.WebView[@index='0']/android.webkit.WebView[@index='0']/android.view.View[@index='7']/android.view.View[@index='1']").click()

运行结果及报错内容

[W 220211 15:44:32 init:218] [pid:14568] atx-agent has something wrong, auto recovering

我的解答思路和尝试过的方法
我想要达到的结果

执行UI脚本

你好,我是有问必答小助手,非常抱歉,本次您提出的有问必答问题,技术专家团超时未为您做出解答


本次提问扣除的有问必答次数,将会以问答VIP体验卡(1次有问必答机会、商城购买实体图书享受95折优惠)的形式为您补发到账户。


因为有问必答VIP体验卡有效期仅有1天,您在需要使用的时候【私信】联系我,我会为您补发。