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 |
How will you compare keyword and expert view?
WHAT IS THE DESCRIPTIVE programming when it is useful? & when to use this ?
what is the hierarchy to use properties in descriptive programming
how to create external data table?
Explain measuring transaction.
how to capture the run time values of web table.
hi all QTP recognizing objects as "string_1","string_2","string_3","string_4" like that but when using FOR LOOP for these.QTP not proceeding further can i declare these _1,_2,_3,_4 as a single variable
What is the difference between QTP 8.2 and QTP 9.2 ?
What is the life cycle of QTP? Pls Give me Exact answer?
How can i learn Descriptive programming in QTP. Please reply.
Pls let me know how to find out creation time and index for the web application in descriptive programming?
i have 2 year experience in manual and automation testing, I have less percentages in X, Xii (Second grade), can i elgible to TCS interview (Or MNC's)