Author: lfryc(a)redhat.com
Date: 2011-01-19 12:55:59 -0500 (Wed, 19 Jan 2011)
New Revision: 21095
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/AbstractComponentAttributes.java
Log:
fixed attributes - do not try select option which is already selected
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-19
17:49:38 UTC (rev 21094)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/AbstractComponentAttributes.java 2011-01-19
17:55:59 UTC (rev 21095)
@@ -106,6 +106,10 @@
applyRadio(locator);
}
} else if ("select".equals(inputType)) {
+ String curValue = selenium.getValue(locator);
+ if (valueAsString.equals(curValue)) {
+ return;
+ }
applySelect(locator, valueAsString);
}
}