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.