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

What is the difference betweent test and component?

1 Answers  


What is the difference between Accessibility Checkpoint and Bitmap Checkpoint in QTP? Note: I have read it in QTP help but i dont want answer from that.......

1 Answers  


Why you are Using Descriptive programming instead of Object Repository?

11 Answers  


What is diff. between ordinal identifier INDEX and Location?

3 Answers  


who is the best faculty in HYD? Nageshwar rao or GC reddy?

3 Answers  






how can we merge the object repositories?is ther any option in qtp to merge the object repositories if we have two or three object repositories?

6 Answers   IBM,


what is advantage of descripting programming in QTP?

3 Answers   ADP,


you written some code in qtp for opening google.com browser and entered some text inthe search text box and clicked search button. this is ur script.. before running this script i have already opened two google.com browsers. now am running the script what will happen? script will run or what?? Thanks... Nani

4 Answers   Oracle,


Who is the best faculty for QTP in Hyderabad? Is it Mr. G.C.Reddy, some are referring his name?

21 Answers  


I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format, as i'm not in a possition to afford any 'Fee' to join in any institutions. Hence, if possible, kinldy mail PDF file to my mail-ID: chakri_avala@yahoo.co.in Regards, Chakradhar Yadav.

95 Answers   Cap Gemini, Citrix, CTS, IBM, Logistics, QA InfoTech,


How we can test a Frame in a web page?

1 Answers   eMids,


how to calculate no. of repeating characters in a a string..please give me the code

14 Answers   CTS, Hexaware,


Categories