Thanks, It worked fine when i passed browser.dt(:text => "System Account ID ").parent.dd.text Return value 37914766
But When i tried <DT> Account Name</DT>, i got the same value 37914766, Where as my expected value should be *AccountName1 * Regards, Gajendra On Wed, Jun 20, 2012 at 3:20 PM, Željko Filipin <[email protected]> wrote: > On Wed, Jun 20, 2012 at 11:44 AM, Gajendra Jain <[email protected]> > wrote: > > Please find the html tag below from where i have to get the value by > passing the dt tag(<DT>System Account ID </DT>). and it should return me > 37914766 > > <DL class=col_3> > > <DT>System Account ID </DT> > > <DD>37914766 </DD> > > <DT>Account Name </DT> > > <DD>AccountName1 </DD> > > </DL> > > Try this: > > browser.dt(:text => "System Account ID ").parent.dd.text > > Željko > -- > filipin.eu > > -- > 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] > -- 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]
