Odin Technology - Automated Software Testing

Axe Test Automation Platform

General discussion relating to the Axe Test Automation Platform from Odin Technology

Posts by Odin employees marked:

Axe/WatiN automation <Span> question

Hi,

I am having difficulty automating the testing of a navigation menu, which contains a tree style menu, using the <span> html class to indicate a menu/submenu and menu item to click and select.

The span elements either contains an id, or just the span text.

In the Watin.ActionMap.xml there is no 'set' value to click a Span class object, so when attempting to build a script, an error occurs.

Is there a possible programmatic or other solution to interact with a Span class object.

Thanks,
Dan
Daniel Billing Send private email
Wednesday, July 16, 2008
 
 
Reply to daniel.billing@northgate-is.com, not address below. :)
Daniel Billing Send private email
Wednesday, July 16, 2008
 
 
Hi Daniel,

The ActionMap entry required to click on a Span element is:
ie.Span(AxeIntWatiN.GetConstraint("&properties&")).Click()

This will be added to WatiN.ActionMap.xml in the next Axe 2.0 maintenance release.

Sam
Sam Warwick Send private email
Tuesday, July 22, 2008
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics