write a script to verify the image path(src property) of
the images which are in web
pages.(do it by Descriptive method by creating a
description object)



write a script to verify the image path(src property) of the images which are in web pages.(do it..

Answer / amiricks

Hi friends i am using a website named www.indiabells.com to
answer this please do correct me if i am wrong


Dim ObjBsr,Pg,Img,Val,Val1
Set ObjBsr = Description.Create
ObjBsr("name").value = "India Bells: Latest Indian
News,Online News Updates,Breaking News"

Set Pg = Description.Create
Pg("title").value = "India Bells: Latest Indian News,Online
News Updates,Breaking News"

Set Img = Description.Create
Img("image type").value = "Image Link"
Img("alt").value = "Murder 3 Music Out"

val = Browser(ObjBsr).page(Pg).Image(Img).GetROProperty("href")
val1= Browser(ObjBsr).page(Pg).Image(Img).GetROProperty("src")
msgbox val
msgbox val1

Regards
Amit

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More QTP Interview Questions

Please let know the scripts for counting number of repeated letters in the word. Note repeated letter should not be count agian. Ex: If "Hello" is my word... l is coming twice.. it should count once and print... secong 'l' should not count again..

5 Answers  


What are the views available in quicktest professional (qtp)?

0 Answers  


What is the use of running the scripts in Hidden-mode in UFT?

0 Answers  


how to retrieve the column headers in database using vbscript statement in QTP

1 Answers  


What is difference between shared and local object repository?

0 Answers  


What are the challenges do we face while testing webbased applcations using the automation tool QTP or any?

1 Answers  


What is QTP and the use of QTP in TD?

0 Answers   MaxSolPro,


Among all the check points what is the most important checkpoint?

5 Answers   Semantic Space,


Does UNIX support QTP? If not what is the other tool used for Unix environment?

2 Answers   Amdocs, Fidelity,


What is Parameterizing Tests?

4 Answers  


how can u find the syntax errors or other script errors in your test during the execution of your QTP Test - (i.e., not after the execution/test run finished, but before finishing the test run)

2 Answers   HCL,


what is smart identification?

7 Answers  


Categories