Answer Posted / nalini
There are two ways to get the count of links on a page.
1) g=Browser("Google").Page("Google").GetROProperty("number
of links")
print g
2) set ld=description.Create()
ld("micclass").value="Link"
set lobj=Browser("Google").Page("Google").ChildObjects(ld)
c=lobj.count
print c
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Hi Friends, Can anyone help me out in this one? In QTP, I am using Data Driver and want to parameterise multiple values (say 3 values ) for a field. How can I do it using Data Driver wizard? Plz mention it step-by-step. In the end after doing the needful, on opening the Data Driver window, how can I get number (i.e. 3) in the Parameterised column for that particualr value? Thanks a lot in advance.
What is QTP and the use of QTP in TD?
Can any one say what exact diff between test->parameters, action properties-> parameters. after defining the parameters in test->settings, how can we access those parameters.(i know how to use action prop parameters)
I have 5 save buttons in 5 tabs . The tabs are placed one after the other. My object repository have these added as 5 save buttons with name sav1, save 2, save 3 , save 4, save 5 .all are getting highlighted from OR but they are not getting clicked. After spying each button all the properties are same except First button Index 0 html id:=btnSaveTab1 outerhtml:=", Second button "html id:=btnSave "outerhtml:=", Third button "html id:=", outerhtml:=",
Explain object spy in qtp.
How many add-ins comes by default with quicktest professional?
Please provide specific examples of advanced/creative usage of QTP, including how impact & benefits for your project
What is difference between shared and local object repository?
How to add object to object repository in qtp9.0 Suppose for brower yahoo home page
How to associate function library at a run time?
How to use Environment parameterization? Explain with an example.
what QTP Options do you know?
How do you configure QTP AND Test director?
After fixing the bug, the same bug is raising again and again in new builds what we have to do? That bug is high level bug.
How did you use regular expressions in QTP and also in WR?