Revision: 462
Author:   henryju
Date:     2006-05-23 01:50:32 -0700 (Tue, 23 May 2006)
ViewCVS:  http://svn.sourceforge.net/jwebunit/?rev=462&view=rev

Log Message:
-----------
Correct a bug in selectOptions (it's by value and not by label)

Modified Paths:
--------------
    
trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitDialog.java
Modified: 
trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitDialog.java
===================================================================
--- 
trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitDialog.java
  2006-05-23 08:42:30 UTC (rev 461)
+++ 
trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitDialog.java
  2006-05-23 08:50:32 UTC (rev 462)
@@ -1295,7 +1295,7 @@
             boolean found = false;
             for (int i = 0; i < l.size(); i++) {
                 HtmlOption opt = (HtmlOption) l.get(i);
-                if (opt.asText().equals(options[j])) {
+                if (opt.getValueAttribute().equals(options[j])) {
                     sel.setSelectedAttribute(opt, true);
                     found = true;
                     break;


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jwebunit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to