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
Hi this is chandra if any one have Navigation of LAB QTP, I want Navigation of those tools, if any one have the and know the Navigation each and every part of the QTP, plz send me my mail naruboinac@yahoo. com,naruboinas@ gmail.com
How to delete an object from the object repository?
Can any one send me the QTP Basic Coding Samples?
what is the difference between development and testing
what is the difference betn QTP 8.0 AND PREVIOUS VERSION
Tell me about your project? please help me how to tell about insurance project
can i change the runtime properties of an object ? How can i check if a parameter exists in database ?
What is the parameterization?
Connect to QC using AOM.
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
What is expert view and keyword view?
How can we extract data like "Details","Result","Time" from the 'Run Error' result generated in QTP after run time errors are generated during a run & import the details etc...into excel sheet
In a flight window we have to enter the name and meal request for every passenger.In that window if we give Total passengers=1 then the Psngr1 name field and psngr1 meal request field will reflects.if we give Total passengers=2 then Psngr1 name field and psngr1 meal request field,Psngr2 name field and psngr2 meal request field and so on. how we can handle this scenerio thru Descriptive programming?
Why we load add-ins in qtp?
write a script to verify the image path(src property) of the images which are in web pages.