in reply to How to fill textarea of a webpage fetched using WWW::Mechanize::Firefox ?

Your textarea has no name, so you will need to fetch the textarea as an object and then use the ->value method with that object.

Maybe you want to show us a short self-contained example of how your code fails for you?

Replies are listed 'Best First'.
Re^2: How to fill textarea of a webpage fetched using WWW::Mechanize::Firefox ?
by strawperl (Initiate) on May 10, 2015 at 05:46 UTC

    I had no idea how to do that. So I dont have have a code to fill the textarea. I tried your suggestion and I got an error. Is it possible to edit

     <textarea class="placeholder" rows="3"  cols="50" placeholder="Place the comment here" > </textarea>

    to

     <textarea class="placeholder" rows="3"  cols="50" placeholder="Place the comment here" > MY COMMENT </textarea>

    through WWW::Mechanize::Firefox so that firefox will update the textarea accordingly?

        This worked. Gracias!

        This worked. Gracias!