in reply to WWW::Mechanize::Chrome: Click on button not part of a form

Hi Steve, going by your error output, maybe you want <button type="button" name="test-button">Test</button> (name rather than id)?

Update: per the doc: Has the effect of clicking a button (or other element) on the current form. The first argument is the name of the button to be clicked.

Hope this helps!


The way forward always starts with a minimal test.

Replies are listed 'Best First'.
Re^2: WWW::Mechanize::Chrome: Click on button not part of a form
by stevieb (Canon) on Dec 01, 2019 at 15:07 UTC

    Thanks Nick, but no dice.

    No change after adding the name attribute (I even went as far to test it after removing id). Thanks though!