当前位置:网站首页>Appium gets the exception of displaying spaces in the middle of object text through XPath
Appium gets the exception of displaying spaces in the middle of object text through XPath
2022-06-22 00:12:00 【Spinach in spring】
appium, Why can't we find the correct element
//android.view.View[@content-desc=" Show menu All "]
Print all types of objects on the page to by looping List
So you can see
a = self.find_elements(*show_all_button2)
text = FindText(self.driver).find_text('//android.view.View')
L= []
for i in a:
text = i.get_attribute("contentDescription")
L.append(text)
print(L)Print the results :
[None,' Show menu \n All ']
边栏推荐
- 211高校神级硕士论文刷屏!75行字错了20行!学校回应:导师停招...
- 【php】mvcs概念(通俗易懂)
- 【微信小程序】微信小程序使用弹出框多级联动(示例)
- Software project lawyer due diligence white paper - full text 19 pages, please contact the author
- Flag bit generation
- CVPR2022 | 弱监督多标签分类中的损失问题
- Infant name [adjacency matrix and DFS of connected components]
- 数据库每日一题---第19天:排名靠前的旅行者
- 张军院士:《无人智群及其社会融合》最新论文,中国工程院院刊
- 外部排序的基本内容
猜你喜欢

标志位生成
![[安洵杯 2019]吹着贝斯扫二维码](/img/38/7bfa5e9b97658acfe24d3aab795bce.png)
[安洵杯 2019]吹着贝斯扫二维码

如何使用tensorboard add_histogram

Must the database primary key be self incremented? What scenarios do not suggest self augmentation?

211 thèse de maîtrise en divinité à l'Université! 75 lignes et 20 mauvaises lignes! Réponse de l'école: le tuteur a arrêté d'inscrire...

7. target detection

基于Arduino框架下VSCode PlatformIO一个项目配置两种不同开发板的兼容模式

Reprint: network loading framework - retrofit

Youth without words │ use technology to frame the best memories of graduation season

JVM makes wheels
随机推荐
211高校神级硕士论文刷屏!75行字错了20行!学校回应:导师停招...
[数据库课程设计]基于Sql Server的教室信息管理系统(附部分源码)
redis主从复制(九)
How to uninstall windows SQL Server cleanly?
windows sql server 如何卸载干净?
Xiuno修罗轻论坛仿知乎蓝简约响应式主题模板1.7+自适应PC+WAP端
buuctf misc 弱口令
Win11打字不显示选字框怎么办?Win11打字不显示选字框的解决方法
通过QT的拖拽事件来操作文件
微博关闭发布多个兼职诈骗信息违规账号:如何打击数据造假灰产
buuctf misc 小易的U盘
appium通过xpath获取对象文本中间显示空格异常问题
Go language learning tutorial (12)
ARM32指令解析通用寄存器
Must the database primary key be self incremented? What scenarios do not suggest self augmentation?
数据库主键一定要自增吗?有哪些场景不建议自增?
Win11怎么把桌面文件路径改到D盘
pytorch 界面编程相关
【next】nextjs打包后出现passHref is missing
路由器连接上但上不了网是什么故障