AssertContais is just a regexp so you can put negative also.

http://stackoverflow.com/questions/406230/regular-expression-to-match-string-not-containing-a-word

**
Martin

2010/11/23 Arnaud Garcia <[email protected]>:
> Hello,
>
> With WicketTester how do check that a word is not present in the page...
>  tester.assertContains("toto"); // check is the word toto is in the page...
> I would like:
>  tester.assertNotContains("toto");
> => To be sure, that I don't have this word on my page...
>
> thanks
>
> arnaud
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to