[Webtest] Click Problem
Dominik Dary
webtest@lists.canoo.com
Thu, 09 Jun 2005 12:45:34 +0200
Hi List,
i am testing an java server faces application. in the source file a link
looks loke this:
<a href="#" onclick="clear_linkDummyForm();document.forms['linkDummyForm'].elements
['autoScroll'].value=getScrolling();document.forms['linkDummyForm'].elements
['linkDummyForm:_link_hidden_'].value='nav_15';if(document.forms['linkDummyForm'].
onsubmit){document.forms['linkDummyForm'].onsubmit();}document.forms['linkDummyForm'].
submit();return false;" id="nav_15">Error Controlling</a>
in my testcase i tested this step, but it doesn't work:
clicklink label="Error Controlling"/>
this could be possible, because javascript is used.
then i tryed the following:
<click xPath="" htmlId="nav15" stepid="dome"/>
but on the command line, while running the ant task, i got the following error:
file:/daten/workspace/antTestManager/build.xml:599: Task must be of type
"Step": click at is of type com.canoo.webtest.steps.request.Click
has someone an idea?
thanks Dome