如何获取tbody下的计数,在UFT中使用xpath
我正在使用uft编写自动化脚本,我想在一个tbody元素下获取计数号(计数多少“ tr”,然后返回结果)
<tbody role="rowgroup">
<tr _calss="01">
<tr _calss="02">
<tr _calss="03">
<tr _calss="04">
<tr _calss="05">
</tbody>
如何在uft中写代码?
I am using UFT to write the automation script, I want to to get the count number under one tbody element,(count how many 'tr', and return the result)
<tbody role="rowgroup">
<tr _calss="01">
<tr _calss="02">
<tr _calss="03">
<tr _calss="04">
<tr _calss="05">
</tbody>
How to write the code in UFT?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于目前尚不清楚是否可以有多个tbody,因此可以将其用于第一个。
Since it is unclear if there can be more than one tbody you could use this for the first one.