Gabor Szabo wrote:
> During testing sometimes I would like to submit a form
> either with values missing from a selection list or with illegal values
> supplied.
>
> Similarry ocassionally I would like to supply fields and values that
> are not in the real form.
>
> How can I do this?
Not with just Mech. You'd need to use HTTP::Request too. This is how I normally
do it.
# create and use mech for several tests
my $request = HTTP::Request::Common::POST(
$mech->uri,
{
foo => 'bar',
baz => 'bam',
}
);
$mech->request($request);
ok($mech->success);
It would be nice if there was a request_ok() method in T::W::M, but it's just an
extra line without it.
--
Michael Peters
Developer
Plus Three, LP