WebTest submit doesn't submit submit button

1 view
Skip to first unread message

Mike Orr

unread,
Aug 27, 2009, 4:42:30 PM8/27/09
to Paste Users
In WebTest, if you call form.submit() without specifying a submit
button, the parameters don't include any submit parameter. This seems
to be wrong because a real browser would choose the first button by
default. In my case, my test failed because it was checking the value
of the submit parameter which didn't exist. I worked around it with
``form.submit("submit")`` but that looks a bit strange because I
normally wouldn't have an argument there.

Is this a bug or a feature?

--
Mike Orr <slugg...@gmail.com>

Reply all
Reply to author
Forward
0 new messages