Index: drupal_web_test_case.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/simpletest/Attic/drupal_web_test_case.php,v
retrieving revision 1.2.2.3.2.47
diff -u -p -r1.2.2.3.2.47 drupal_web_test_case.php
--- drupal_web_test_case.php	27 Jan 2010 01:55:29 -0000	1.2.2.3.2.47
+++ drupal_web_test_case.php	12 Nov 2010 00:02:12 -0000
@@ -1635,7 +1635,7 @@ class DrupalWebTestCase extends DrupalTe
    */
   protected function handleForm(&$post, &$edit, &$upload, $submit, $form) {
     // Retrieve the form elements.
-    $elements = $form->xpath('.//input|.//textarea|.//select');
+    $elements = $form->xpath('.//input[not(@disabled)]|.//textarea[not(@disabled)]|.//select[not(@disabled)]');
     $submit_matches = FALSE;
     foreach ($elements as $element) {
       // SimpleXML objects need string casting all the time.
