Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the WWW-Mechanize CPAN distribution.

Report information
The Basics
Id: 2182
Status: resolved
Priority: 0/
Queue: WWW-Mechanize

People
Owner: Nobody in particular
Requestors: subir732 [...] yahoo.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



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");
The issue of submit() only working if there's a button called "submit" has been fixed in 0.38. I'm closing this ticket, and opening your other issue in a new one.