Enabling disabled form element
"Dag Welinder" <[email protected]>
| Newsgroups | gmane.comp.web.httpunit.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I have a form with a disabled textfield. The page has a script which enables the textfield when run in a browser. I can't have javascript enabled when testing with httpunit, because of the limited javascript support. So I have to enable the textfield some otehr way before submitting the form. How can I do that?
There is a setDisabled(boolean)-method in class com.meterware.httpunit.TextFieldFormControl, inherited from com.meterware.httpunit.FormControl. FormControl. Theese classes are not accessible from my testcase, so the following does not compile:
HTMLElement element = webResponse.getElementsWithName("myTextField")[0];
FormControl fc = (Formcontrol) element;
fc.setDisabled(false);
Any ideas?
D..
----------
Släng inte bort din tid! Satsa på ny karriär
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Httpunit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/httpunit-develop