You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Per Newgro <pe...@gmx.ch> on 2009/08/04 20:52:07 UTC

Can i simulate disabled javascript in wickettester?

Hi,

i would like to write a test for my page. The page uses the the 
clientinfo to determine if javascript is enabled.
If js is disabled a redirect should occur. But how can i simulate 
disabled javascript with the wickettester?
Or is it impossible?

Thanks for bring me the light.
Per

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Can i simulate disabled javascript in wickettester?

Posted by Martin Makundi <ma...@koodaripalvelut.com>.
If client does not have javascript it will always use non-ajax button
clicks. You can choose in WicketTester to test either with
tester.executeAjax or just formTester.submit. The latter one is
without "javascript".

Ofcourse wickettester cannot test if your button exists magically only
because of javascript. In such case you could use HTTPUnit to test
your web-app.

**
Martin

2009/8/4 Per Newgro <pe...@gmx.ch>:
> Hi,
>
> i would like to write a test for my page. The page uses the the clientinfo
> to determine if javascript is enabled.
> If js is disabled a redirect should occur. But how can i simulate disabled
> javascript with the wickettester?
> Or is it impossible?
>
> Thanks for bring me the light.
> Per
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org