Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1
QTP - Capturing tool tips of images

QTP - Capturing tool tips of images

Ratings: (0)|Views: 1,127|Likes:
Published by api-19840982

More info:

Published by: api-19840982 on Nov 30, 2009
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less





QTP - Capturing tool tips of images

In my previous post (QTP - How to capture tool tip?) I shown an example on
capturing tool tip of Web page link.
That solution usesF ireE ve nt ("onmouseover") and

GetROProperty("text") to get tool tip of a link.
Now, I'm going to show how to show how to capture tool tips of images
located on a Web page.

Actually, the solution is simple.
To capture a tool tip of an image, we can get value of"alt " Run-time Object
property withGe t R OPrope rt y("alt" ) function:

Let's verify this code in practice. For example, let's check tooltips fromWikip edia
Main page:
I've prepared QTP script, which gets all image from this page and checks their
tooltips ("alt" property):
Dim descImage, listImages, attrAltText, attrSrcText
Browser("Main Page - Wikipedia,").Sync
Browser("Main Page - Wikipedia,").Page("Main Page -
' Create description for all images on a Web page.
' For that we use "html tag" property and its value "IMG"
Set descImage = Description.Create
descImage("html tag").value ="IMG"
' Get all images which match the above description

Activity (6)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
Vimakar Raj liked this
AriesTruong liked this
jakiechan liked this
AriesTruong liked this

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->