Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

unique properties of button,edit box, radio button,check box?

1 Answers   IBM,


how to use the QTP choose the data from oracle&#65311; e.g. i input the identity card NO. this will be add new record in the database ,and now i want get this record's prime key.

0 Answers  


Give me some scripts for 1). checking webpage links (counting links,opening web pages,counting child elements)

2 Answers   CIL,


any one can explain about QTP proocess,means where to start and how to start Scripting.

3 Answers  


DIFFERENT RUN MODE IN QTP..1-VERIFY MODE 2-UPDATE MODE 3- dEBUG MODE. My question is in whic sitution we use these modes Explain me with example

1 Answers  


suppose u hav a dialog or window which contains 10 buttons with same name & value. now how to check each button? i.e. how qtp indetifies these objects separately?

2 Answers  


Explain different types of action in qtp?

0 Answers  


What is Active Screen in QTP?

11 Answers  


For Regression testing already written test cases are sufficient?

2 Answers   CTS,


Differences between QTP & Winrunner?

2 Answers   Crea,


what area in a web application cannot be automated.

1 Answers  


what are the disadvantages of descriptiveprograming

5 Answers   GE,


Categories