[Webtest] Click Problem
Dominik Dary
webtest@lists.canoo.com
Thu, 09 Jun 2005 14:52:52 +0200
Hi Marc,
thank you for your message. i testet your code, but it doesn't work. the
problem with jsf is, that links only work with javascript.
from athor people i heared, that this will be no problem.
can canoo webtest folow javascript links?
Thanks,
Dome
Marc Guillemot wrote:
> Why don't you use
>
> <clickLink htmlId="nav15" stepid="dome"/>
>
> and if you use 1.6, many of the features are not available there.
>
> Marc.
>
> Dominik Dary wrote:
>
>> 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
>>
>> _______________________________________________
>> WebTest mailing list
>> WebTest@lists.canoo.com
>> http://lists.canoo.com/mailman/listinfo/webtest
>>
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>