Le 27 oct. 2009 à 07:24, yuping zhong a écrit :

>
> Dear All,
>
> As it is known to all that,"assert" can be use in the unit test But
> when I try to use the "!assert" ,it always fails,any idea of this?
>
> Thanks in advance.
>
> -Zhong


Hello,

To have a negative assert working (mostly on non visible elements),  
I've been using the following:

assert true == false if ....

Not the best way to do it I guess, but works like a charm.
Regards

-- 
Frédéric de Villamil
"What's mine is mine. What's yours is still unsetteled" – Go player  
proverb
[email protected]                        tel: +33 (0)6 62 19 1337
http://t37.net                                          Typo : 
http://typosphere.org


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to