A script "hinder" is called upon clicking a form input (i.e., when you click to type in a query string into the form), and this script is supposed to enable the desired submit button, but my doEvent call to that script doesn't seem to be working.
I get a DisabledSubmitButtonException when I try to submit the form. Any ideas? I am restricted to the functions available in HttpUnit 1.5.X, so greatly I'd appreciate any help limited to that function set.
Thanks in advance!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I want to submit a WebForm from the site http://www.nyecounty.net/assess/ver2/nca_search.php, but I am having trouble enabling the submit button that I need to click.
A script "hinder" is called upon clicking a form input (i.e., when you click to type in a query string into the form), and this script is supposed to enable the desired submit button, but my doEvent call to that script doesn't seem to be working.
Here is part of my code:
WebForm searchForm = response.getFormWithName("searchForm");
searchForm.getScriptableDelegate().doEvent("javascript: hinder('cmdAdd','cmdName','cmdPar')");
searchForm.setParameter( "vPage", "1" );
searchForm.setParameter( "vNum", number );
searchForm.setParameter( "vPre", "" );
searchForm.setParameter( "vName", cleanStreet );
searchForm.setParameter( "vLimit", "100" );
SubmitButton sb = searchForm.getSubmitButton("cmdAdd");
response = searchForm.submit(sb);
I get a DisabledSubmitButtonException when I try to submit the form. Any ideas? I am restricted to the functions available in HttpUnit 1.5.X, so greatly I'd appreciate any help limited to that function set.
Thanks in advance!