Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: Click button with WWW::Mechanize

by thomas895 (Deacon)
on Mar 12, 2016 at 06:09 UTC ( [id://1157530]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Click button with WWW::Mechanize
in thread Click button with WWW::Mechanize

I haven't looked at Mechanize's source, but I'm guessing that it doesn't look at <button> elements when parsing the page for forms.

-Thomas
"Excuse me for butting in, but I'm interrupt-driven..."

Replies are listed 'Best First'.
Re^4: Click button with WWW::Mechanize
by beech (Parson) on Mar 12, 2016 at 07:50 UTC

    I haven't looked at Mechanize's source, but I'm guessing that it doesn't look at <button> elements when parsing the page for forms.

    HTML::Form/WWW::Mechanize don't have a problem with buttons inside forms

    use WWW::Mechanize 1.75; my $ua = WWW::Mechanize->new; $ua->get(q{file:123654789987.html}); $ua->dump_forms; __END__ POST file:/xxx.cgi?login login_name= (text) password= (password) login=<UNDEF> (submit) login=<UNDEF> (submit)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1157530]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-25 02:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found