Pls anyone, tell me the script in QTP to find the number of
links, and images in a webpage. Verry very urgent. I
shall really be very thankful
Answer Posted / hemakumar.m
'For Links
Dim oLinkDes
Set oLinkDes=Description.Create()
oLinkDes("micclass").value="Link"
a=Browser("title:=.*").Page("title:=.*").Childobjects
(oLinkDes).Count()
Msgbox a
'For Images
Dim oImageDes
Set oImageDes=Description.Create()
oImageDes("micclass").value="Image"
a=Browser("title:=.*").Page("title:=.*").Childobjects
(oImageDes).Count()
Msgbox a
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
How you can write contexts to text file in qtp?
What is keyword view in qtp?
If created one virtual object? Next time I changed the window position will it work?
How to get Traceability matrix from TD?
Where to use function or action?
1. What is the difference between Keyword and function in the keyword driven framework? 2. How do you associate Keywords to the script ?
Can QTP be used for GUI testing ?, We are using Java with MySQL and Operating system is Linux. We are NOT using the web.
Does any one worked on JIL Emulator , Testing with QTP(automation). Trail Version of QTP is not identifying the child objects of JIL emulator, Can any one help me out ,
What contains Data Driven Framework document in qtp?
Can we record using all the modes in a single script? Explanation with example is appreciated
How to modify object property in qtp ?
What is the limitation to XML Checkpoints?
How are cgi programs, applets, javascripts, ActiveX components, etc. to be maintained, tracked, controlled, and tested?
wht is Manual Testing Frame work. Pls anybody can give appropriate answers
How can I find out the cursor position through QTP suppose I am keep tabbing(Pressing the tab key continuously) and stoped at a position Now I want to find out where the cursor position is