I get .exists? as a method for a link. If in doubt, try:
$ie.link(...).public_methods
I was surprised that $ie.link(...).nil? returns false for a non-existent
link (although I'm using an older version of Watir). I seem to recall
this was touched on in discussion here before?
Jared
[EMAIL PROTECTED] wrote:
Is there a method to know if an object exist? I mean without going through the
exception handling.
for example if $ie.link(...).exist then...
Jan M. Montano
QA Lead / Developer
Regional Application Development
Thomson (Philippines) Corporation
18th Floor Ayala Life - FGU Center
6811 Ayala Ave., Makati City
Philippines
(632) 878-5890
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general