I guess this is the solution that Corion suggested (to fetch the textarea as an object and then use the ->value method). I used this code trying both the absolute xpath and '//textarea' (the page has only one textarea).
line 52 my $textarea = $mech->xpath('//textarea', one => 1);
line 53 $textarea->value("somevalue");
I got the below error-
MozRepl::RemoteObject: TypeError: f.apply is not a function at getpage.pl line 53In reply to Re^2: How to fill textarea of a webpage fetched using WWW::Mechanize::Firefox ?
by strawperl
in thread How to fill textarea of a webpage fetched using WWW::Mechanize::Firefox ?
by strawperl
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |