安卓7在appium中不起作用

安卓7在appium中不起作用,appium,Appium,我正在使用APPIUM 1.6.4和Android 7.0进行测试。在NATIVE中使用WEBVIEW查找元素没有问题,但在相同条件下,我再次更改为NATIVE Context时输出的任何内容。如果我转到上一个活动并返回,getpagesource可以显示出来。为什么会这样? ps.Android 5、6运行正常。就在Android 7中,当我在ACTIVITY->webview->native中执行本机操作时,它就停止了。它停止并无法搜索元素 我能看到最后的日志-- [AndroidBoots

我正在使用APPIUM 1.6.4和Android 7.0进行测试。在
NATIVE
中使用
WEBVIEW
查找
元素
没有问题,但在相同条件下,我再次更改为
NATIVE Context
时输出的任何内容。如果我转到上一个
活动
并返回,
getpagesource
可以显示出来。为什么会这样? ps.
Android 5、6
运行正常。就在
Android 7
中,当我在
ACTIVITY->webview->native
中执行本机操作时,它就停止了。它停止并无法搜索元素

我能看到最后的日志--

[AndroidBootstrap][BOOTSTRAP LOG][debug]获取了类型为ACTION的命令

[AndroidBootstrap][BOOTSTRAP LOG][debug]获得命令操作:查找

[AndroidBootstrap][BOOTSTRAP LOG][debug]使用带有>contextId的'id'查找'com.skmc.okcashbag.home\u google:id/home\btn:''多个:true

[AndroidBootstrap][BOOTSTRAP LOG][debug]使用:UiSelector[RESOURCE\u ID=test:ID/home\btn]

[AndroidBootstrap][BOOTSTRAP LOG][debug]getElements选择器:UiSelector[RESOURCE\u ID=test:ID/home\btn]

[AndroidBootstrap][BOOTSTRAP LOG][debug]元素[]为空:(0)

[AndroidBootstrap][BOOTSTRAP LOG][debug]getElements tmp选择器:UiSelector[INSTANCE=0,RESOURCE\u ID=com.skmc.okcashbag.home\u google:ID/home\u btn] [debug][AndroidDriver]未清理生成的文件。如果需要,添加
clearSystemFiles
功能

[AndroidBootstrap][BOOTSTRAP LOG][debug]未能找到元素。正在清除辅助功能缓存并重试

[AndroidBootstrap][BOOTSTRAP LOG][debug]使用上下文id为“”的“id”查找“test:id/home\btn:”多个:true

[AndroidBootstrap][BOOTSTRAP LOG][debug]使用:UiSelector[RESOURCE\u ID=com.skmc.okcashbag.home\u google:ID/home\btn]

[AndroidBootstrap][BOOTSTRAP LOG][debug]getElements选择器:UiSelector[RESOURCE\u ID=test:ID/home\btn]

[AndroidBootstrap][BOOTSTRAP LOG][debug]元素[]为空:(0)

[AndroidBootstrap][BOOTSTRAP LOG][debug]getElements tmp 选择器:UiSelector[INSTANCE=0,RESOURCE\u ID=com.skmc.okcashbag.home\u google:ID/home\btn] [debug][AndroidBootstrap]从引导程序接收到命令结果 [debug][BaseDriver]到目前为止等待了2525毫秒

[AndroidBootstrap][BOOTSTRAP LOG][debug]返回结果:{“状态”:0,“值”:[]}


你能告诉我你想做什么以及为什么吗?我测试了一次android automator脚本。但它在安卓7.0上不起作用