Button in WWW::Mechanize

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Just checking there is nothing odd about the button in WWW::Mechanize.

I have <input type='button' name='This One' ...  etc>

I am using

$agent->click('This One');
print $agent->$content();

It accepts the button but does move to the next page.


Re: Button in WWW::Mechanize

John wrote:

Quoted text here. Click to load it

Since Buttons don't actually submit forms (type='submit' does)there is no
next page.  There is probably an 'onclick' in the input field that points
at some javascript, which WWW::Mechanize will ignore.

Brian Wakem

Re: Button in WWW::Mechanize

Quoted text here. Click to load it

Typo just here or in your program. Should be:
print $agent->content();

Site Timeline