We can find the count of rows in the table in QTP using 3 ways as mentioned below.
using rowcount property of QTP webtable object
print objParent.webtable("html id:=myTable").RowCount
using GetROProperty of QTP
print objParent.webtable("html id:=myTable").GetROProperty("rows")
using html DOM + QTP
print objParent.webtable("html id:=myTable").Object.rows.length
This is how you can get the total number of rows in the given table in QTP.
Please give your inputs, suggestions, feedback to Us about above QTP topic. We value your thoughts. You can write to me at reply2sagar@gmail.com
- using rowcount property of QTP webtable object
- using GetROProperty of QTP
- using HTML DOM + QTP
using rowcount property of QTP webtable object
print objParent.webtable("html id:=myTable").RowCount
using GetROProperty of QTP
print objParent.webtable("html id:=myTable").GetROProperty("rows")
using html DOM + QTP
print objParent.webtable("html id:=myTable").Object.rows.length
This is how you can get the total number of rows in the given table in QTP.
Please give your inputs, suggestions, feedback to Us about above QTP topic. We value your thoughts. You can write to me at reply2sagar@gmail.com
No comments:
Post a Comment
Please Leave your reply. We value your feedback and inputs