Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

what is keyword driven testing in qtp?n how is it useful?

1930


In what occasion we can specify global sheet and action sheet?

1037


what is the difference between rational rose and QTP? WHICH TOOL IS BETTER TO LEARN? PLEASE SEND ME AT sana_50218@yahoo.com sandeep@epuratech.com

2816


How do you send email with attachment from outlook using qtp ?

1020


What are the different types of recovery operation?

1030


what are the challenges you have faced while testing web based application using the automation tools ?

1147


Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.

2009


Whar are the challenges do we face while testing web based applications using the automation tool QTP or any??

2101


Hi! Using Descriptive Programming How do we get Parent object for an object by writing script(DP). Say, i want to get a parent object for a "Link" in a web page by writing script in Descriptive Programming.

2588


how to create flat file datasubmission in qtp

2451


What are the advantages of parameterization ?

1069


What is synchronization? What are the ways you can synchronize?

1160


How to create runtime property for an object?

1993


please give me the code for doing retesting of gmail login page using functions so the function has to give the value

2072


How is the Bitmap checkpoint different from Image checkpoint?

1119