selenium: locating a activeImage

Ray Kiddy <[email protected]>
Newsgroups gmane.comp.web.webobjects.wonder-disc
Message-ID <[email protected]>
Does anyone know how to make this work?

I put an id attribute on:

	<wo:activeImage src="foo.jpg" action="$foo" />

The id attribute does not show up in either the <a> or the <img>. So, there is nothing for selenium to click.

Hm. Perhaps I can use ERXActiveImage. But, ERXActiveImage does not add a "id", but it does add an "alt". But:

	<wo:ERXActiveImage alt="HeyHereIAm" src="foo.jpg" action="$foo" />

The alt = "HeyHereIAm" does not show up anywhere either, so nothing to click.

I have a span around the <wo:activeImage>. I can locate on the title on the span (I think, though really that is a guess), but if I then click, what does clicking on the span get me?

Apparently, not much.

Jeez, Selenium is great, if you can get id attributes attached to everything. Otherwise locaters are _still_ a PITA!

Any suggestions?

Using Selenium IDE and recording gives me css-based locators and, if they would work, that would be fine. But they do not….

- ray


------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.