On Fri, Jul 15, 2011 at 12:40 PM, pun2et <[email protected]> wrote:
> <div class=globalSearchItems>
> why divs are returning false?
> puts @browser.div(:class, " globalSearchItems ").exist? => false

Because you have added both leading and trailing space. Try this:

@browser.div(:class, "globalSearchItems").exist?

Željko
--
watir.com - community manager
watir.com/book - author
watirpodcast.com - host

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

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to