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

Is it possible to return multiple values from a function..? Then how..?

3 Answers  


In an interview, what r the general questions asked in QTP? pls give me anwser to this question?

0 Answers  


what is option explicit?

5 Answers  


Our company is having a windows client server application developed in vb.net. so there is a treeview and i am not in a position to record the click events in QTP. so kindly help. Vivek

0 Answers  


How to run a test using quicktest professional?

0 Answers  


What is the difference between shared and local object repository?

0 Answers  


When we r doing data driven test with chkpts, i want to insert formulae in data sheet but i didn't get. How we wil do that plz. explain in detail.

0 Answers  


Suppose i have a script which is having 100 lines.I want to execute that script starting from line no 75.means first qtp should read the script from line no 75 how can u do it.

5 Answers   Lehman Brothers, rsystems,


what difference between client and server applications exatly?

1 Answers   Honeywell,


Are You using any frame work? What is that? Explain about that.

4 Answers   Wipro,


How do we create and run the scripts with out using O.R. ?

5 Answers  


How many types of actions are there in quicktest professional?

0 Answers  


Categories