in reply to WWW::Mechanize click()

Yes, you're missing something.

What happens when you click on an input of type submit? The form is submitted.

What happens when you click on a button? I don't know.. depends on the button.. but nothing leads me to think it would have a default behaviour of submitting the form..

Dig deeper into your HTML source. Is the button later bound to an action with javascript? Remember, WWW::Mechanize can't work out what javascript code does, so you're going to have to assist it. If the javascript submits the form, then perhaps you should call $mechanize->submit().

Replies are listed 'Best First'.
Re^2: WWW::Mechanize click()
by jbrugger (Parson) on May 30, 2005 at 04:46 UTC

    Monarch is right.

    The thing you might consider if you really need to check JavaScript in your page, is have a look at httpunit.

    "We all agree on the necessity of compromise. We just can't agree on when it's necessary to compromise." - Larry Wall.