14 messages in com.canoo.lists.webtestRe: [Webtest] Clickbutton with index ...
FromSent OnAttachments
Lisa Crispin11 Nov 2004 13:07 
Marc Guillemot12 Nov 2004 01:18 
Lisa Crispin12 Nov 2004 09:22 
Marc Guillemot15 Nov 2004 05:50 
Lisa Crispin15 Nov 2004 14:29 
Ji Kim15 Nov 2004 14:45 
Dierk Koenig16 Nov 2004 02:57 
Marc Guillemot16 Nov 2004 03:36 
Marc Guillemot16 Nov 2004 03:37 
Marc Guillemot16 Nov 2004 04:53 
Lisa Crispin16 Nov 2004 12:51 
Lisa Crispin16 Nov 2004 12:52 
Chakra Yadavalli16 Nov 2004 16:22 
Dierk Koenig17 Nov 2004 01:16 
Subject:Re: [Webtest] Clickbutton with index not working
From:Marc Guillemot (mgui@yahoo.fr)
Date:11/15/2004 05:50:53 AM
List:com.canoo.lists.webtest

Hi Lisa,

I've removed it because it was useless in the selftests. Furthermore I think
that it is a bad practice to rely on the order of buttons to write a test: when the designer decide that it now looks
nicer to have first button on the right and second button on the left, your test will fail. And an index indication can only
rely on the position in the html source code, even if the displayed order looks different.

Nevertheless feel free to provide a test where the index locator is really
needed.

Clickbutton is missing an htmlid attribute to allow perfect identification of
the button to click.

Marc.

Lisa Crispin wrote:

Thanks, Marc. Is there some feature which took the place of index? What would you do if you need this functionality? thanks, Lisa

-------------- Original message from Marc Guillemot <mgui@yahoo.fr>: --------------

> Hi Lisa, > > yes, index has been removed. The doc is not uptodate, sorry. > > Marc. > > Lisa Crispin wrote: > > I'm getting the following error running a script which works in the > > HTTPUnit-based WebTest. I'm using build 560. > > > > C:\java\eplan\build.xml:901: Following error occured while executing > > this line > > C:\java\eplan\test\WebTest\SmokeTest\EmployeeEnrollTest.xml:23: The > > > > > type doesn't support the nested "index" element. > > > > This line number 23 in that file is just the testSpec, but I think it > > must actually be complaining about this: > > > > > > label="Search..." > > > > > > > The doc shows this is still supported, has it been deprecated? I can > > work around it, but I'm just curious. > > thanks, > > Lisa > > _______________________________________________ > WebTest mailing list > WebT@lists.canoo.com > http://lists.canoo.com/mailman/listinfo/webtest