Vidur Oberoi
Vidur Oberoi

Reputation: 75

how can i write text into a textbox using WWW::Mechanize?

i have been trying to write text into a textbox using WWW::Mechanize,

i am not able to figure out a way to enter text into a textbox, does WWW::Mechanize support such feature,

Upvotes: 0

Views: 612

Answers (1)

Lee
Lee

Reputation: 10603

Everything you need is here (its a pretty simple thing to want to do, so it of course supports it):

http://search.cpan.org/~jesse/WWW-Mechanize-1.72/lib/WWW/Mechanize.pm#$mech->field($name,$value,$number)

Don't forget to select the form first, prior to trying to set the fields within it

Upvotes: 3

Related Questions