Interview Questions   Tutorials   Discussions   Programs   Videos   

QTP - How to capture the run time values of web table?




298
views
asked marvit August 30, 2014 03:12 AM  

How to capture the run time values of web table?


           

1 Answers



 
answered By Dharma   0  
iRowCount = Browser("Browser").Page("page").WebTable("Row").RowCount
'OR:...WebTable("Row").GetROProperty("rows")
For i=1 To iRowCount
CellContent = Browser("Browser").Page("page").WebTable("Row").GetCellData(i, 5)
'Now you can parse this info as you need
If NOT CellContent = "" Then
'do your logic
Else
'Cell is empty
ExitGlobalIteration("Cell is empty")
End If
Next
 
In this case your loop will not go up to Rows boundary.
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert