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
What is the syntax to call one script from another?
What is the difference between qtp and selenium?
which type of testing process are you following in ur company? how to recognize a qtp page?
How to automate a script in mainframes environment? I have the terminal emulator Add in. Describe in detail.
images are dynamically changes how to compare two images with out using the bitmap
What is the difference between a Function and Action in QTP?
Key word driven framework
How to remove the associated function library?
what the difference between shared repository and per action repository?
What is 'sleep' in sync point?
what is the latest version of QTP? Main difference between 9.2 and 10 version
Hi , I am facing issue QTP 10.0 with oracle ERP 11i .When QTP opens,click sub links on ERP ,FORM is not opening getting unexpected Internet explorer error message with send or don't send report.So unable to work with forms using QTP.
i can done the project with QTP in that time i can say how many members in my team size?
What are the advantages of parameterization ?
if numbers are always changing write a script for that