Tested the below returning Null .(Empty). Please let me know. Try this (not tested):
browser.div(:class => "name_address").h3(:index => 1).text On Dec 28, 6:02 pm, Željko Filipin <[email protected]> wrote: > On Tue, Dec 28, 2010 at 1:16 PM, V <[email protected]> wrote: > > My HTML code is something like. I need to display the value of h3 in > > the DIV. > > <div class="name_address"> > > <h3> > > Name > > </h3> > > </div> > > Try this (not tested): > > browser.div(:class => "name_address").h3(:index => 1).text > > Željko > -- > watir.com - community manager > watirpodcast.com - host > testingpodcast.com - audio podcasts on software testing. all of them -- 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]
