Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to validate contents of tooltip
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
Hello everybody,

I have to validate there is text in a tooltip. I am using firefox not IE.

I have tried:
Code:
Tooltip = browser("x").Page("y").WebElement("z").GetROProperty("title")
but it is empty

Any ideas?
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
QTP only provides replay support for Firefox(FF). You can record a statement on IE or spy it to find out which property holds the tool tip. Once done you can then run the same script on FF.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
Thank you I'll check with IE first then
Reply
#4
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi Laura,

Proceed as Ankur suggested.

Use the below properties accordingly while retrieving the ToolTip Text.

WebElement --> Innertext/Title
Image --> Alt
Link --> Title


See the below examples:
Ex1:
Code:
msgbox Browser("Yahoo! India").Page("Yahoo! India").Image("Click here").GetROProperty("alt")

Ex2:
Code:
msgbox browser("Google").Page("Google").WebElement("India").Object.title
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to validate a format of an alphanumeric string PrateepKaraval 2 5,985 11-08-2014, 10:26 AM
Last Post: vinod123
  How to validate tool tip in a web page? qtplearner88 3 4,311 04-24-2013, 05:19 PM
Last Post: nucleation
Exclamation How to validate color of image object in a web page qtplearner88 9 9,214 06-14-2012, 06:34 PM
Last Post: Shridevi.Salagare
Exclamation How to read the contents of external excel sheet qtplearner88 10 10,876 05-25-2012, 12:00 PM
Last Post: supputuri
  validate the articles without text/textarea checkpoint priya999 4 4,841 03-03-2011, 12:27 PM
Last Post: A.Saini

Forum Jump:


Users browsing this thread: 1 Guest(s)