On Jul 6, 12:21 am, Chuck van der Linden <sqa...@gmail.com> wrote:
> See commented line, then below
>    Functionally you are saying "if there is a radio button on the page
> with an ID value of xxxx then put yes

Actually this is not completely true because if you create an object
with Watir, then the object itself is always created, e.g:
$ie.radio(:id,"ID_OTHER_OPTION_BUTTON")
$ie.radio(:id,"XXXXXX")

both of these statements create a Watir::Radio object thus being true
for if-statement, which means that the if statement mentioned above
will be true always - even if there's no such radio.

To check for existence, you'd have to invoke #exist?
$ie.radio(:id,"XXXXXX").exist? # => false

Just wanted to clarify :)

Jarmo

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com

Reply via email to