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
what you mean by artifact,milestone...
What is the difference between shared and local object repository?
Suppose I created one object as virtual object? That object is applicable to that test? Or all the tests?
What is the difference between local and shared object repository in qtp?
What are the key elements available in test result window?
What is standalone database?
How does you pass optional arguments in qtp?
Explain the concept of object repository and how qtp recognises objects?
what is the diff between manual test plan document and automation test plan doc.can u explain indetail.
What is the meaning Work bench?
Explain the types of object repository?
Where to use function or action?
How to use output values in qtp ?
Hi All , How can we decicde for pariticular frame(DataDriven or Keword Driven)in Project? Thanks Balaji
Hi All, I Want To excute scripts batch without using QC .I need code for that Thanks Balaji