Hi, according to the other mailing list thread the issue is due to those ID's changing each time the layout is changed, making the test very brittle.
You'll either need to click the inputs based on their position (also very fragile) or relative location based on some text nearby that doesn't change (have a read about xpath axes like previous-sibling etc). How about using the image name in the src url? e.g. clickElement xpath:"//input[contains(@src,'theImageFile.gif')]" cheers Lee 2009/5/20 Lee Butts <leebu...@gmail.com> > Hi Miriam, > > what error is WebTest reporing? > > cheers > > Lee > > 2009/5/20 Naegreth <naegr...@caras-galadhon.de> > > Hi, >> >> I am new to Webtest and I have a problem testing a jboss based web-app >> that uses jsf. >> >> I have a button-like input element with an onclick event to get to the >> next page: >> >> <input id="_idJsp26:_idJsp55" type="image" src="<path>" >> >> onclick="A4J.AJAX.Submit('_viewRoot','_idJsp26',event,{'parameters':{'_idJsp26:_idJsp55':'_idJsp26:_idJsp55'} >> ,'actionUrl':'<path>.jsf?javax.portlet.faces.DirectLink=true'} );return >> false;" name="_idJsp26:_idJsp55"/> >> >> Everything worked fine so far except for this one. >> I tried to use clickElement with the htmlId and xPath as >> >> <clickElement xPath="//*...@id='_idJsp26:_idJsp55']"/> >> and >> <clickElement htmlId="_idJsp26:_idJsp55"/> >> >> I have no problems calling standart types for input elements (e.g. text) >> with similar IDs, so I assume it's not up to this. >> >> I already had a look at the list's archives and found a similar problem >> (http://lists.canoo.com/pipermail/webtest/2008q2/010653.html ) but I'm >> afraid I don't really get the point... >> >> Can someone please give me a hint what to use or to try next? >> >> Kind regards, >> Miriam >> >> _______________________________________________ >> WebTest mailing list >> WebTest@lists.canoo.com >> http://lists.canoo.com/mailman/listinfo/webtest >> > >