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


Please Help Members By Posting Answers For Below Questions

Connect to QC using AOM.

1228


breef description of batch testing ?

1701


Explain Descriptive Programming Types with Examples?

919


distinguish between old version and new version QTP features.

1855


Which functionalities of QTP used in banking project?

1911






what is the frame work in J-meter?

1588


Explain about business process component? types and usage?

1553


Hi, how can we check or avoid the memory leakage in QTP9.2?

1694


one screen page,that contains file , browse , update and cancel buttons.when we browse a file it should get update otherwise it should go to previous page.write negative test case for that.

1513


How to use Environment parameterization? Explain with an example.

1473


When to use descriptive programming?

582


Explain how you can delete excel file in qtp?

582


How you create new action in qtp?

556


What is different command used in command Prompt while using QTP?

1737


I want to test my vb.net solution file using qtp. Does Qtp test only .exe file?

1717