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.
[email protected]
http://groups.google.com/group/watir-general
[email protected]