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
Explain types of output values?
What is different command used in command Prompt while using QTP?
Is there any pdf or online book for QTP Scripting? Let me know more about QTP Scripting.
how to compare two bitmaps( 1. clients requirement & 2. Designed by dev) in qtp 8.2 wann clear steps
Can you list some technologies that support qtp?
How Can I find the least value in a bunch of variables using qtp.. E.g.:- A = 210, B = 212, C = 60, D = 111 I don’t want to write bunch of lines for this…. Is there a way to get the result in one line…..
www.icici.com ,after this.. home page wll came, in this page what r the items we r going to test for manual and what are items we r going to test for QTP... explian clearly with example
What test you perform mostly? Regression or retesting in your testing process?
How do you test the text displayed in the header portion of times of india epaper. Hot news(banner) are scrolling in the top of the page, how do you test using QTP?
We stored into the objects OR and then write the scripting
Hi any body pls help me for QTP 11.0 software free demo version. i have to practice. Kindly send the link.or where i have to download.
how to do the batch testing in test director using manual testing procedure?
Object repositories types, which and when to use?
How to associate shared object repository to test in qtp?
Discuss quicktest professional (qtp) environment?