Hi,

Try to access this div using Xpath.

On Fri, Jul 15, 2011 at 4:10 PM, pun2et <puneet.pat...@gmail.com> wrote:

> I am trying to find a Div which is inside a div tree as shown below.
>
> Div with Class=”globalSearchItems” is not able find using watir code.
>
>  <Div class="contentFrame">
>            <DIV id="content">
>                  <p></p>
>                  <p></p>
>                  <a name=top></a>
>                  <b>
>                  <p></p>
>                  <p></p>
>                  <div class=globalSearchItems>
>                  <p></p>
>                  <p></p>
>                   <div class=globalSearchItems>
>                  <p></p>
>                  <p></p>
>             </div>
>  </div>
> puts @browser.div(:class, "contentFrame").div(:id, "content").exist?
> => True
>
> why divs are returning false?
> puts @browser.div(:class, "contentFrame").div(:id, "content").
> div(:class, " globalSearchItems ").exist? => false
> puts @browser.div(:class, " globalSearchItems ").exist? => false
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> watir-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com
>



-- 
Thanks and Regards,
Amit

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

Reply via email to