[Webtest] Can I click a button that has been marked DISABLED?

Eric Pugh webtest@lists.canoo.com
Mon, 24 Jun 2002 10:22:46 +0100


Hi all,

I am getting this exception:
BUILD FAILED
Error encountered: Sniff Creating Workorder and Suggested Plate
Plan(com.canoo.w
ebtest.engine.ConfigurableTestCase): The specified button
(name='eventSubmit_doG
otoWorkorder' value='workorder' is disabled and may not be used to submit
this f
orm.
Exception raised: com.meterware.httpunit.DisabledSubmitButtonException: The
spec
ified button (name='eventSubmit_doGotoWorkorder' value='workorder' is
disabled a
nd may not be used to submit this
form.com.meterware.httpunit.DisabledSubmitButt
onException: The specified button (name='eventSubmit_doGotoWorkorder'
value='wor
korder' is disabled and may not be used to submit this form.
        at com.meterware.httpunit.WebForm.getRequest(WebForm.java:181)
        at com.meterware.httpunit.WebForm.getRequest(WebForm.java:164)
        at
com.canoo.webtest.steps.ButtonLocator.getAllRequestsFromForm(ButtonLo
cator.java:84)
        at
com.canoo.webtest.steps.ButtonLocator.locateRequestBySearchAllForms(B
uttonLocator.java:62)
        at
com.canoo.webtest.steps.ButtonLocator.locateRequest(ButtonLocator.jav
a:42)

The exception makes sense because in the HTML the button was marked
DISABLED.  Is there any way around it though?  I use javascript to
"undisable" this button when data has been entered.

Eric