What code have you tried? You could use Xpath to retrieve the value looking at the class (if its unique to the page) http://wiki.openqa.org/display/WTR/XPath
Try reading about tables http://rdoc.info/gems/watir/1.6.6/Watir/Table On Fri, Nov 5, 2010 at 5:32 PM, Eric Mathiesen <mathiese...@gmail.com>wrote: > Hello All! > > I am running into a significant challenge capturing a string of text to > later use in my script. Here's the situation. I have a basic create user > form in my application (First Name, Last Name, Username) that provides a > password on the page. How would I go about capturing the string for the > password as It changes every time. In the snippet below, the string I want > captured is ynH&ZaBK > > Any help is GREATLY appreciated! > > Viewing source gives me this (condensed to the fields I'm working with). > > > <tr align="left" valign="middle"> > <td width ="50%" height ="20" > > <table width="100%" border="0" cellpadding="0" cellspacing="0" > > <tr class="formHeaderSkinBG" > > <td width="50%" height="" > > <table width="100%" border="0" cellpadding="0" > cellspacing="1" > > <tr class ="formHeaderBG" > > <td width ="50%" height ="20" class > ="formHeader" id='3081488100560284032' onclick = > "root.handleOnClick(document, this);" > > > > Password: > > > > <nobr> > </td> > </tr> > </table> > </td> > </tr> > </table> > </td> > > <td class="pageContent" width="" align="left" valign="middle" height="20" > > > ynH&ZaBK > > </td> > > </tr> > > Thanks, > Eric > > -- > 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<watir-general%2bunsubscr...@googlegroups.com> > -- 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