@@ -731,7 +731,7 @@ public void assertCheckboxPresent(String checkboxName) {
731731 assertFormPresent ();
732732 Assert .assertTrue ("Did not find form checkbox with name ["
733733 + checkboxName + "]." , getTestingEngine ().hasElementByXPath (
734- "//input[@type='checkbox' and @name='" + checkboxName + "']" ));
734+ "//input[lower-case( @type) ='checkbox' and @name='" + checkboxName + "']" ));
735735 }
736736
737737 /**
@@ -745,7 +745,7 @@ public void assertCheckboxPresent(String checkboxName, String checkboxValue) {
745745 Assert .assertTrue ("Did not find form checkbox with name ["
746746 + checkboxName + "] and value [" + checkboxValue + "]." ,
747747 getTestingEngine ().hasElementByXPath (
748- "//input[@type='checkbox' and @name='" + checkboxName
748+ "//input[lower-case( @type) ='checkbox' and @name='" + checkboxName
749749 + "' and @value='" + checkboxValue + "']" ));
750750 }
751751
@@ -758,7 +758,7 @@ public void assertCheckboxNotPresent(String checkboxName) {
758758 assertFormPresent ();
759759 Assert .assertFalse ("Found form checkbox with name [" + checkboxName
760760 + "] when not expected." , getTestingEngine ().hasElementByXPath (
761- "//input[@type='checkbox' and @name='" + checkboxName + "']" ));
761+ "//input[lower-case( @type) ='checkbox' and @name='" + checkboxName + "']" ));
762762 }
763763
764764 /**
@@ -773,7 +773,7 @@ public void assertCheckboxNotPresent(String checkboxName,
773773 Assert .assertFalse ("Found form checkbox with name [" + checkboxName
774774 + "] and value [" + checkboxValue + "] when not expected." ,
775775 getTestingEngine ().hasElementByXPath (
776- "//input[@type='checkbox' and @name='" + checkboxName
776+ "//input[lower-case( @type) ='checkbox' and @name='" + checkboxName
777777 + "' and @value='" + checkboxValue + "']" ));
778778 }
779779
0 commit comments