
因为不管是appium还是uiautomator,在微信公众号文章页面都获取不到元素,所以想通过坐标点击屏幕。但是不知道为啥,uiautomator2在微信公众号文章的页面里,使用点击手机屏幕和滑动手机屏幕两个指令都会卡住很久,然后报错。
【问题】:uiautomator2 在微信公众号文章页面滑动手机屏幕、点击手机屏幕这些指令的时候,会报错 ('Uiautomator started failed.', "(<Response [502]>, 'gateway error, time used 0.0s')", 'https://github.com/openatx/uiautomator2/wiki/Common-issues', 'adb shell am instrument -w -r -e debug false -e class com.github.uiautomator.stub.Stub com.github.uiautomator.test/android.support.test.runner.AndroidJUnitRunner')
相关情况:
在其他页面正常。
手机已经开启了无障碍模式,也已经开启跟随朗读。
appium上没有这个问题,但是不知道为啥,打开微信app的时候,appium没有动静,所以换成了ui2
有没有大佬知道怎么解决???