A web Page has a webtable with four columns and four rows.
The first column is of ID and has values of 100,100A,A100,100y
Find out the number of rows whose ID starts with 100.

Similarly the last column is 'number of links'. Each row in
the last column has values like link1,link2,link3 etc
Find out the number of links where id is 100



A web Page has a webtable with four columns and four rows. The first column is of ID and has value..

Answer / sagar jadhav

set objWT = Browser("micclass:=Browser").Page
("micclass:=Page").Webtable("html id:=xxxx")

rowCount = objWT.Rowcount
Dim Pass
For i = 2 to objWT 'As row#1 is always a column
num = objWT.GetCellData(i,1)
numCheck = mid(num,1,3)
If strComp(numCheck, "100", 1) = 0 Then
Pass = Pass + 1
End If
Next

msgbox "Number of expected Rows:" &Pass

Is This Answer Correct ?    5 Yes 2 No

Post New Answer

More QTP Interview Questions

how to create the varibles and how these are connect to qtp? plz tell me

3 Answers  


What are the ordinal identifiers in web page?

0 Answers  


Q- what is the advantage of merging tool in QTP 9.2?

1 Answers   TCS,


i have 100 manual test cases, how to automate from no 1. ols detail steps

1 Answers  


How do know the number of browsers opened?

0 Answers  






Can you tell me any books or websites to learn VB Script for QTP ??

1 Answers  


can we do load testing , by using QTP......?

1 Answers  


How to suppress warnings from the test results page?

0 Answers  


How can i click on any Excel sheet's "H" column with out writing coordinates Ex:Window("Book1").WinObject("Book1").Click 498,14 I dont want to give coordinates like 498,14 Can i open "H" column by writing like Ex:Window("Book1").WinObject("Book1").Click "H" or Ex:Window("Book1").WinObject("Book1").Click "H","1" or Ex:Window("Book1").WinObject("Book1").Click H,1 If i want to click on "Sheet3" of an excel sheet, Can i open like Ex:Window("Book1").WinObject("Book1").Click "Sheet3" Please help me any one

0 Answers   Livetek,


what is parameterisation?

3 Answers  


In descriptive programming how we know the properties of the objects, if application is not developed and the prototype of the application is also not developed.

1 Answers  


How to delete an object from the object repository?

0 Answers  


Categories