Appium:Android资源ID:转换为硒集成中的什么? [英] Appium: Android Resource ID: translates to what in their selenium integration?

查看:39
本文介绍了Appium:Android资源ID:转换为硒集成中的什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,我有:

wd.findElement.By(name("searchBttn"));

ui xml屏幕截图中的resource-id是 com.aut.android:id/searchBttn

the resource-id in the ui xml screen cap is com.aut.android:id/searchBttn

,Appium找不到项目.我尝试使用ID和Name.在这里我还能尝试其他的东西吗?我是否在某处缺少直线相关列表的直线?

and Appium can't find the item. I have tried with ID and Name. Is there something else here i could try is there a direct line for line correlation list somewhere that i am missing?

推荐答案

您可以通过资源ID在Appium中找到一个Android项目,但是您必须指定整个包名称以及资源ID:

You can find an Android item in Appium by Resource ID, but you have to specify the entire package name along with the resource id:

wd.findElement.By(id("com.aut.android:id/searchBttn"));

这篇关于Appium:Android资源ID:转换为硒集成中的什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆