Is there any way where i can find the index of the DT tag in the web page? There are so many values gets populated based on the value from the previous screen.
In general the field like Account Name, System Account Id etc are dynamic it may change the position in the webpage. So i need some generic function/Statement where i pass the Value/Text of <DT> and it should return me the value/text of <DD> Regards, Gajendra On Wed, Jun 20, 2012 at 3:48 PM, Željko Filipin <[email protected]> wrote: > On Wed, Jun 20, 2012 at 12:09 PM, Gajendra Jain <[email protected]> > wrote: > > But When i tried <DT> Account Name</DT>, i got the same value 37914766, > Where as my expected value should be AccountName1 > > Try this: > > browser.dt(:text => "Account Name ").parent.dd(:index => 1).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]
