当前位置:网站首页>Katalon框架测试web(二十一)获取元素属性断言
Katalon框架测试web(二十一)获取元素属性断言
2022-07-04 03:33:00 【春天的菠菜】
目录
使用了编码视图
方法一:先获取属性值,再断言
msg = Mobile.getAttribute(findTestObject('login/msg'), 'contentDescription', 0)
println(msg)
Mobile.verifyEqual(msg, '操作成功')
方法二:直接获取属性值断言
Mobile.verifyElementAttributeValue(findTestObject('login/msg'), 'contentDescription', '操作成功', 0)
边栏推荐
- [Valentine's Day confession code] - Valentine's Day is approaching, and more than 10 romantic love effects are given to the one you love
- How to use STR function of C language
- Webhook triggers Jenkins for sonar detection
- Stm32bug [the project references devices, files or libraries that are not installed appear in keilmdk]
- Code Execution Vulnerability - no alphanumeric rce create_ function()
- What are the virtual machine software? What are their respective functions?
- Résumé des outils communs et des points techniques de l'examen PMP
- super_ Subclass object memory structure_ Inheritance tree traceability
- Zlmediakit compilation and webrtc push-pull flow testing
- Apple submitted the new MAC model to the regulatory database before the spring conference
猜你喜欢
Mindmanager2022 efficient and easy to use office mind map MindManager
Katalon框架测试web(二十六)自动发邮件
What is cloud primordial?
Rhcsa day 3
Objective-C description method and type method
Webhook triggers Jenkins for sonar detection
Summary of Chinese remainder theorem
渗透实战-SQLServer提权
Unity controls the selection of the previous and next characters
Stm32bug [the project references devices, files or libraries that are not installed appear in keilmdk]
随机推荐
CSP drawing
Handler source code analysis
Imperial cms7.5 imitation "D9 download station" software application download website source code
How to pipe several commands in Go?
functools下的reduce函数
1289_FreeRTOS中vTaskSuspend()接口实现分析
Redis notes (I) Linux installation process of redis
【.NET+MQTT】.NET6 環境下實現MQTT通信,以及服務端、客戶端的雙邊消息訂閱與發布的代碼演示
System integration meets the three business needs of enterprises
No clue about the data analysis report? After reading this introduction of smartbi, you will understand!
What are the virtual machine software? What are their respective functions?
Li Chuang EDA learning notes 13: electrical network for drawing schematic diagram
Defensive programming skills
2022 registration examination for safety production management personnel of fireworks and firecracker production units and examination skills for safety production management personnel of fireworks an
基于PHP的轻量企业销售管理系统
Zigzag scan
Short math guide for latex by Michael downs
(practice C language every day) pointer sorting problem
[PaddleSeg 源码阅读] PaddleSeg Transform 的 Normalize操作
Nbear introduction and use diagram