Thread antwortfeld ausfüllen mit WWW::Mechanize::Firefox. (9 answers)
Opened by firstday at 2013-04-21 20:59

Linuxer
 2013-04-21 21:30
#167190 #167190
User since
2006-01-27
3881 Artikel
HausmeisterIn

user image
Direkt oberhalb des von mir verlinkten Absatzes gibt es eine Methode "form_with_fields".

perldoc WWW::Mechanize
$mech->form_with_fields( @fields )

Selects a form by passing in a list of field names it must contain. If there is more than one form on the page with that matches, then the first one is used, and a warning is generated.

If it is found, the form is returned as an HTML::Form object and set internally for later used with Mech's form methods such as "field()" and "click()".

Returns undef if no form is found.

Note that this functionality requires libwww-perl 5.69 or higher.

(Hervorhebungen von mir)

Damit sollte es doch möglich sein, das gewünschte Formular auszuwählen, um dann die set_field() anzuwenden...
meine Beiträge: I.d.R. alle Angaben ohne Gewähr und auf Linux abgestimmt!
Die Sprache heisst Perl, nicht PERL. - Bitte Crossposts als solche kenntlich machen!

View full thread antwortfeld ausfüllen mit WWW::Mechanize::Firefox.