How to find total rows in a paginated web table ?

I am working on automating a .NET app using QTP 11.0. The app has a webtable which is paginated showing 30 rows per page.
How do I get the total row?

Showing Answers 1 - 3 of 3 Answers

harihar

  • May 9th, 2015
 

it is better to go with recording.... because some times developer use more hidden rows and columns for objects........with recording u came to know exact count of rows and columns in table..

  Was this answer useful?  Yes

Selenium can do this. May be this can help.

Code
  1. span style="color: #006699;">readingTablejava.util.Iteratorjava.util.Listorg.junit.Afterorg.junit.Beforeorg.junit.Testorg.openqa.selenium.Byorg.openqa.selenium.WebDriverorg.openqa.selenium.WebElementorg.openqa.selenium.firefox.FirefoxDriver"http://www.espncricinfo.com/"//Test to display how to read html table using webdriver on cricinfo.com.  

  2. //Get all the links for Scorecard.

  3. "div.ciHomeTopHeadlines""Scorecard"));

  4.  

  5.                 //Click on the first scorecard link from News Section

  6.                 (scorecard.get(0)).click();

  7.  

  8.                 //Get all the data of the table

  9. "inningsBat1""tr"//Print the table.

  10. "td"//Removing blank columns data and add a separator while displaying data.

  11. """ | """"-----------------------------------------------"

  Was this answer useful?  Yes

sourabh

  • Nov 19th, 2017
 

Get Matching Xpath Count Use this keyword in Robot

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions