如何使用机器人框架在表中验证特定行?
Here, I add one device and need to validate that one.
How to validate particular 2nd row in a table using ROBOT framework
Thank you!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您使用的是SeleniumLibrary来测试您的WebApp:
1。第一个解决方案:
使用“ Table Cell应该包含”关键字
[文档
]第二个解决方案:
- 您需要获取第二行的所有元素,类似:
- 然后您可以运行一个循环以检查每个元素:
If you are using SeleniumLibrary to test your WebApp:
1. First solution:
Use "Table Cell Should Contain" keyword
[Documentation]
2. Second solution:
-You need is to get all the elements of second row, something like:
-Then with that you can run a for cycle to check each element:
建议您尝试另一个自动化库clicknium,如硒一样,但要编写XPath或CSS选择器,您可以在录制的定位器中定义Tablerow或TableColumn
suggest you try another automation library clicknium, similiar as selenium, but instead writing xpath or css-selector,you can define the tablerow or tablecolumn in recorded locator