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
oLinkDes=Description.Create()
oLinkDes("micclass").value="Link"
a=Browser("title:=.*").Page("title:=.*").Childobject
(oLinkDes).Count
Msgbox a
oImageDes=Description.Create()
oImageDes("micclass").value="Image"
a=Browser("title:=.*").Page("title:=.*").Childobject
(oImageDes).Count
Msgbox a
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What is a data driven test in qtp?
How to use checkpoints in qtp ?
If you are testing a web application then what will you test in that application?
Explain features of the latest version of qtp/ uft 12.1?
How to import a test case present in ".xls" file to TD under a Test set?
What are the different types of recovery operation?
How to execute the WR Script through QTP? I have WinRunner script with initialization script, common scripts, GUI AND functions. I connected WR through QTP with "call to WinRunner" option but I am getting problem after connecting to WinRunner i.e. showing "Do you want to quit now" with 'yes' and 'No' message box
how to find that a file has been completely downloaded or not? I told that "download Complete" pop up. but he told the tool doesn't recognize the pop up
How does you test a weblink which is changing dynamically?
I want to grow as a Automation Engineer,Kindly help me in clearing my interview that what interviewer looks for as a Automation Engineer. I am having three years of experience in testing.
What is the difference between rational rose and QTP?
what is key word driven frame work ? why it is called like that ? what is the diference between keyword driven and data driven frame work ?
Explain the qtp test phases.
When do go for loop condition in test?
How QTP support all types of applications (platforms)?