This happens due to the fact, that Watir::IE#exists? does just
@ie.name =~ /Internet Explorer/, which returns nil or a number.

But, since in Ruby everything except nil or false will be treated as
true, then you can still use it as regularly like this:
if $browser.exists?
   # do this
else
  # do that
end

Jarmo

On May 1, 7:24 pm, [email protected] wrote:
> I'm curretly attempting to assert whether a browser window is open
> before I do anything.  I used something like browser.exist? and when
> the browser doesn't exist it returns false as expected.  However
> exists? returns the number "8" instead of true when the browser window
> does in fact exist, any thoughts?
>
> Thanks,
> Bobby
--~--~---------~--~----~------------~-------~--~----~
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