当前位置:网站首页>appium通过xpath获取对象文本中间显示空格异常问题
appium通过xpath获取对象文本中间显示空格异常问题
2022-06-21 22:24:00 【春天的菠菜】
appium,明明元素正确怎么就是找不到
//android.view.View[@content-desc="显示菜单 全部"]
通过循环将页面的全部类型对象打印输出到List
这样就能看出来
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)打印结果:
[None,'显示菜单\n全部']
边栏推荐
- Jmter test command [note]
- ERP已死,管理后台已凉,秒杀系统称王!
- Component value transfer: child components transfer data to parent components
- 211高校神級碩士論文刷屏!75行字錯了20行!學校回應:導師停招...
- Enterprise wechat built-in application H5 development record-1
- QT document reading notes staticmetaobject parsing and instances
- 洞见数据价值,启迪数字未来,《数字化的力量》问世
- How applets and the industrial Internet complement each other
- 组件传值:父组件与子组件传值用props
- SQL interview questions: top 15 questions in 2022
猜你喜欢

CPDA | what basic skills do data analysts need?

Reddit product director: a necessary NFT member practical guide for Web3 creators

Win11怎么把桌面文件路径改到D盘

211 college Master of divinity thesis swipe the screen! 75 lines wrong 20 lines! School response: the tutor stopped recruiting

Flexer series: indexedstack in Flexer
![[GXYCTF2019]SXMgdGhpcyBiYXNlPw==](/img/4d/f37968ce8ad1cd8112651e4215f464.png)
[GXYCTF2019]SXMgdGhpcyBiYXNlPw==

Student management system experiment report -asp Net programming

可省近90%服务器,反欺诈效率却大增,PayPal打破「AI内存墙」的方案为何如此划算?

今日睡眠质量记录81分

redis主从复制(九)
随机推荐
Mono 的创建
被八股文害惨了。。。。
Six little-known SQL technologies in SQL tutorial can help you save 100 hours per month
洞见数据价值,启迪数字未来,《数字化的力量》问世
Cvpr2022 𞓜 loss problem in weakly supervised multi label classification
[technical remarks] [reprint]analysis of several parameters of ffmpeg compressed video
IPD chip shipments exceeded 1billion, and chips and semiconductors appeared in ims2022
Implementation and tuning of decision tree (sklearn, gridsearchcv)
I was badly hurt by the eight part essay....
[技术杂谈][转载]ffmpeg压缩视频几个参数解析
pytorch可视化
redis主从复制(九)
Object划分
你有一个机会,这里有一个舞台
张军院士:《无人智群及其社会融合》最新论文,中国工程院院刊
目标检测、视觉弱监督学习、大脑多模态成像技术等CV综述来了!图像图形学发展年度报告综述专刊!
渗透测试-逻辑漏洞专题
What if the program input point cannot be located in the dynamic link library
Must the database primary key be self incremented? What scenarios do not suggest self augmentation?
盘点常见的漏洞利用方式