Subject: | wish: support for selecting random values |
It would be nice to support selecting random values when there are
multiple possible values listed in the HTML form.
Here's one way I could see that implemented:
...
fields => {
'my_select_list' => $mech->rand,
}
Here the 'rand' method would return a code reference.
Before the form is submitted, Test::WWW::Mech would notice the code
reference, and translate it into a random value from the selection list.
Mark