my $button = $mech->current_form()->find_input(undef, "submit"); $mech->click_button(input => $button)