Hi captin! Well, you almost hit the jackpot. What actually worked was:
puts browser.hidden(:name => 'ReqTitle').value When I tried your suggestion, I got a blank line. So I replaced 'text' with 'value' and it worked like magic. Thanks!! El jueves, 7 de marzo de 2013 15:18:29 UTC-2, captin escribió: > > Try: > puts browser.hidden(:name => 'reqtitle').text > > > > > On Thursday, March 7, 2013 10:37:23 AM UTC-6, [email protected] wrote: > >> Hi Joe, >> >> All I'have tried so far is: >> >> puts browser.text_field(:name => 'reqtitle').text >> puts browser.text_field(:name => 'reqtitle').value >> >> Fabian >> >> El jueves, 7 de marzo de 2013 13:51:37 UTC-2, Joe Fl escribió: >>> >>> Hi, >>> >>> Can you paste your code? >>> >>> Joe >>> >>> On Thu, Mar 7, 2013 at 10:47 AM, <[email protected]> wrote: >>> > Hey guys! >>> > >>> > I'm trying to retrieve the text from a textarea, which appears as >>> hidden, >>> > although I can dee it on the browser. This is the html tag: >>> > >>> > <tr> >>> > <td> >>> > Certification Request Number >>> > <input type="hidden" name="reqtitle" value="Certification Request >>> > Number"> >>> > </td> >>> > </tr> >>> > >>> > I would like to grab the value "Certification Request Number", but I >>> get >>> > this error: >>> > >>> > >>> > (...) `assert_exists': unable to locate element, using >>> {:name=>"reqtitle", >>> > :tag_name=>"input or textarea", :type=>"(any text type)"} >>> > (Watir::Exception::UnknownObjectException) >>> > >>> > I've done my research on the mailing list and couldn't find anything >>> > ...Also, I could grab the text in the <td><td> tags, but they are >>> inside a >>> > table, which is inside a table inside a table and another table and so >>> on, >>> > so it's impossible to track. >>> > >>> > Ideas? >>> > >>> > Thanks! >>> > Fabian >>> > >>> > >>> > >>> > -- >>> > -- >>> > 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] >>> > >>> > --- >>> > You received this message because you are subscribed to the Google >>> Groups >>> > "Watir General" group. >>> > To unsubscribe from this group and stop receiving emails from it, send >>> an >>> > email to [email protected]. >>> > For more options, visit https://groups.google.com/groups/opt_out. >>> > >>> > >>> >> -- -- 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] --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
