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)
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 |
1--How many functions u develop 2--What is an array 3-- where is ur server 4--U involved in unit testing 5--how ur test the background colour using QTP
Explain script generated at the time of setting runtime property?
Hi! Using Descriptive Programming How do we get Parent object for an object by writing script(DP). Say, i want to get a parent object for a "Link" in a web page by writing script in Descriptive Programming.
Hello, I am learning QTP. I have recorded test for Login page, i have also inserted checkpoint for Email field & when I run test it passed. But when i tried to run test by inserting 'Adding Parameter Values to a Data Table' for email & password field, it pass the first value in both the fields but after that when test run for second parameter values it displays 'Internet Explorer cannot open the Internet site, Operation aborted' & when i analyze test result it displays run time error 'Object disable'. I have also cleared all the history from IE but it is not working. Please help me. Thank you.
In one of the scripts the pwd in the DT was encripted. Can any one tell me how to I decript or undo the same?
How many types of Recordings are there in QTP and what are they?
7 Answers Dangote, First Indian Corporation,
if Object repository contain x and y properties. we do not know whether they are mandatory or assistive properties. While executing the script qtp will use both the properties or only sufficient properties to identify the object. It means it use OR (or) AND
What is the difference between the keyword view and expert view?
DEFECT LIFE CYCLE,WHO PUT THE STATUS AS OPEN
What is the difference between Global and Local Data Sheets?
How to test login page by using QTP
How to attach a file to TD?