Author: lfryc(a)redhat.com
Date: 2011-01-08 17:47:08 -0500 (Sat, 08 Jan 2011)
New Revision: 20919
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/AbstractComponentAttributes.java
Log:
fixed AbstractComponentAttributes for checking radio box which is currently checked
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/AbstractComponentAttributes.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/AbstractComponentAttributes.java 2011-01-08
22:46:38 UTC (rev 20918)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/AbstractComponentAttributes.java 2011-01-08
22:47:08 UTC (rev 20919)
@@ -93,7 +93,12 @@
} else if ("radio".equals(inputType)) {
locator = propertyLocator.format(propertyName, "[value="
+ ("".equals(valueAsString) ? "null" : valueAsString)
+ "]");
- guardHttp(selenium).click(locator);
+
+ if (selenium.isChecked(locator)) {
+ guardHttp(selenium).fireEvent(locator, Event.CHANGE);
+ } else {
+ guardHttp(selenium).click(locator);
+ }
}
}
Show replies by date