Thursday 20 February 2014

How to find the total number of rows in the webtable in QTP?

We can find the count of rows in the table in QTP using 3 ways as mentioned below.

  1. using rowcount property of QTP webtable object
  2. using GetROProperty of QTP
  3. 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

Best QTP Books

Everything About QTP

Hello Friends,
You can find QTP study material, Multiple choice questions (mcq), QTP question bank, QTP question papers, QTP notes, QTP questionnaire, scenario based QTP interview questions, QTP tutorial and QTP training on this site.

If you are a fresher or experienced QTP professional with (1/2/3/4) years of experience, this blog is just for you.