1 message in com.canoo.lists.webtest[Webtest] RE: TooLTips
FromSent OnAttachments
Nate Oster02 Dec 2006 09:07 
Subject:[Webtest] RE: TooLTips
From:Nate Oster (nos@numbersix.com)
Date:12/02/2006 09:07:53 AM
List:com.canoo.lists.webtest

Mark, If by "tooltips," you mean the ALT or TITLE tag on links and images, then the easiest way to test that is using an XPath expression. Since these are just attributes of HTML tags, you can easily search the entire page for them.

For example, the XPath "//*[@title='Home']" would match the Home <a> link in the following HTML fragment:

<a title="Home" href="/index.shtml" class="topnav"> Home </a> <a title="About Us" href="/About.shtml" class="topnav"> About Us </a>

You can use the <VerifyXPath> tag to check XPath expressions in your tests. Once you get comfortable with XPath, it's probably WebTest's most versatile feature.

To write XPaths quickly without a lot of syntax knowledge, my project uses Firefox with two extensions: -View Formatted Source, which has an "inline" mode for quickly selecting small subsections of the HTML source. -XPather, a handy tool for writing and testing XPath expressions against your test webpages.

Hope this helps! Nate Oster

Date: Fri, 01 Dec 2006 17:10:20 +0000 From: Mark McKeown <Mark@aepona.com> Subject: [Webtest] Tootlips

Hi Guys,

does webtest support the testing of mouse-over tooltips?

Thanks in advance, Mark