Tricentis Tosca 16.0 Released on Feb-2023 ----- UFT has been upgraded from UFT 15.0.1 to UFT One 15.0.2, Beginning at November 2020.

Wednesday, 3 June 2015

How to Find number of rows and columns in a web table ?

 RowCnt=Browser("Google").Page("title:=.*").WebTable(“name:= TTable").RowCount

Msgbox RowCnt

For r=1 to RowCnt
     'This will loop through each row and tell count of column in each row.
     ColCnt=Browser("Google").Page("title:=.*").WebTable(“name:=TTable").ColumnCount(r) 
     MsgBox intColCnt
Next

No comments:

Post a Comment

Note: only a member of this blog may post a comment.