Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Elusive button WWW::Mechanize::Firefox

by Corion (Patriarch)
on Aug 11, 2012 at 06:48 UTC ( [id://986865]=note: print w/replies, xml ) Need Help??


in reply to Elusive button WWW::Mechanize::Firefox

One approach could be to click the button instead of submitting the form:

$agent->click({ selector => '#dnn_ctr373_VINBox_btnVIN' });

Replies are listed 'Best First'.
Re^2: Elusive button WWW::Mechanize::Firefox
by jjap (Monk) on Aug 11, 2012 at 13:22 UTC
    Thanks Corion, that did it just fine.

    For my own info, where in the doc could I have found out about the hash key to add before the button id/name? Or is this some web convention not specific to the module?

    Thanks again for the boost!

      The syntax of CSS selectors is defined in some CSS standard, which WWW::Mechanize::Firefox uses. The documentation only mentions CSS selectors, but not their syntax or their definition. I guess that googling for them will turn up the relevant RFC or standard. Personally, I've mostly (re)used what others use and am not aware off-hand of a link to a standard.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-24 02:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found