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 / 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 |
I opened gmail login into gmail and i have to save (Pass or move) all the mail into notepad please give me code Thanks of all
How exactly you start scripting in QTP? In the interview he was not satisfied with my answer.Please post what is correct answer.
How do you create a library file
How to start recording using quicktest professional (qtp)?
what is aregular expression?
hi guys, pls tell me for testing institution training hub, hitech city is best or not?
When we use Object Spy? can we write QTP script before built is came in testing?
How to remove associated function library?
What is the pros and cons between QTP and Rational Robot
What is the Test Object model in QTP?
Hi All, I need 5 yrs exp manual and automation testing using QTP sample resume. is there any body having please send me my mail id is bjr@aol.in Tahnks in Advance
what are the environment variables,how do you use them. give an example.