Ques:- You have a WebTable in Web application. When you Record aScenario using QTP, WebTable didn't recognized and alsoRepository is not having Webtable information. In this caseHow to find RowCount and Coloumn Count?
Asked In :-
Applitools, wistron,
Right Answer:
You can use the `GetROProperty` method to find the row count and column count of a WebTable in QTP. Use the following code:
```vbscript
Set objWebTable = Browser("YourBrowser").Page("YourPage").WebTable("YourWebTable")
RowCount = objWebTable.GetROProperty("rows")
ColumnCount = objWebTable.GetROProperty("columns")
MsgBox "Row Count: " & RowCount & vbCrLf & "Column Count: " & ColumnCount
```
You can use the `GetROProperty` method to find the row count and column count of a WebTable in QTP. Use the following code:
```vbscript
Set objWebTable = Browser("YourBrowser").Page("YourPage").WebTable("YourWebTable")
RowCount = objWebTable.GetROProperty("rows")
ColumnCount = objWebTable.GetROProperty("columns")
MsgBox "Row Count: " & RowCount & vbCrLf & "Column Count: " & ColumnCount
```