Subject: | button click issue |
In WWW::Mechanize
$agent->click("button_name", x, y); # signature for click
when doing $agent->submit(); essentially calls $agent->submit("submit");
1. instead of looking for the button name="submit" this should really look
at type="submit"
2. A lot of html pages does not put name attribute on the button tag.
so, click() should be callable either by "name" (existing feature)
or by "type" (new ) or by "value". signature could be
$agent->click("name_attr", "name_value");
$agent->click("type_attr", "type_value");
$agent->click("value_attr", "value_value");