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
how do we know whether all objects are stored in the object repository or not? how can we know if a particular object is not stored in the repository?
I want to configure the OR and library files to a particular QTP test during run time. Note: OR and Library files are located in Quality Center. Is it possible in QTP? Anybody having code?
How can i use virtual objects? If have i created one new virtual object in a virtual object manager by following instructions.
what is command for executing files?
An object is non standard object, i mapped it to standard object, eventhogh on mapping to standard object i cannot use the methods available on the standard object with the mapped object. How i can use those standard object methods with these mapped object. (((Note : dont tell that we can use virtual object as virtual object is to map nonstandard obj to standard obj)))
give me an example where u used good judgement and logic in solving a problem
How to build scripts that access data from external sources?
ACTUALLY I AM WORKING IN THE DISTRIBUTION DOMAIN.MY COMPANY IS PROVIDING DISTRIBUTION SOFTWARE FOR PHARMA AND FMCG DISTRIBUTORS.HERE I AM USING QTP 9.2.HERE IN MY APPLICATION WHILE RECORDING ONE WINDOW APPEARS.IN THAT I CAN SELECT THE ITEM OR NO NEED TO SELECT.BUT WHILE RUNNING THE SAME SCRIPT THE WINDOW MAY NOT APPEAR OR APPEAR.HOW TO WRITE SCRIPT FOR THIS
How will you test a stapler?
Define virtual object?
Hi! Using Descriptive Programming How do we get Parent object for an object by writing script(DP). Say, i want to get a parent object for a "Link" in a web page by writing script in Descriptive Programming.
what is error and fault in terms of software quality?
Please Don't mind .i want in detail the real time process i.e in each document what it contains.
How to find array size in qtp?
What is checkpoints for quicktest professional?