I have the following code in my jWebUnit test:

selectOption("outage.companyName", "NSPP");

And I have the following HTML that's rendered (if I do a view-source in Firefox):

<select name="outage.companyName" onchange="checkCompany(this)" id="outage.companyName">
<option value=""></option>
<option value="2">NSPP</option>
<option value="1">PSCo</option>
<option value="3">SPS</option>
</select>


Any idea why I'm getting the following error:

[junit] Unable to find option NSPP for outage.companyName
[junit] java.lang.RuntimeException: Unable to find option NSPP for outage.companyName
[junit] at net.sourceforge.jwebunit.HttpUnitDialog.getValueForOption(HttpUnitDialog .java:863)
[junit] at net.sourceforge.jwebunit.HttpUnitDialog.selectOption(HttpUnitDialog.java :875)
[junit] at net.sourceforge.jwebunit.WebTester.selectOption(WebTester.java:847)
[junit] at net.sourceforge.jwebunit.WebTestCase.selectOption(WebTestCase.java:341)


Thanks,

Matt



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Jwebunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to