How do you access perticular row/column from a web page by using QTP?

Showing Answers 1 - 9 of 9 Answers

This can be done through by Webtable function
General syntax is

Browser("Browser Name").Page("Page Name").WebTable("Table name").GetRowWithCellText("N")


define the N variable in the variable assign in the code
and aquire the value "N" on the script running parameter

  Was this answer useful?  Yes

SurajKumarPatra

  • Mar 29th, 2012
 

Code
  1. rowNum=Browser("name:=.*").Page("title:=.*").WebTable("name:=Aston Martin").GetRowWithCellText("Tata")

  2. msgbox rowNum

  3. colNum=Browser("name:=.*").Page("title:=.*").WebTable("name:=Aston Martin").ColumnCount(rowNum)

  4. msgbox colNum


  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