petdance/test-www-mechanize — Issue #12: $mech->grep_submits() should complain about bad input
Author: petdance
Created: 2012-01-10 17:37:27+00:00
State: open

I had this line of code

```
my @see_titles_buttons = $mech->grep_submits( {type => qr/^see_/} );
```

but what I really wanted was

```
my @see_titles_buttons = $mech->grep_submits( {name => qr/^see_/} );
```

`grep_submits` should have complained about the `type` argument, especially because `grep_submits` stomps on the `type` before handing off to `grep_inputs` to do the real work.