Author: lfryc(a)redhat.com
Date: 2011-01-27 08:13:12 -0500 (Thu, 27 Jan 2011)
New Revision: 21270
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/AbstractComponentAttributes.java
Log:
AbstractComponentAttributes - fixed locator for attributes to do not match attributes
which are ending on same string as wanted attribute
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-27
11:47:36 UTC (rev 21269)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/AbstractComponentAttributes.java 2011-01-27
13:13:12 UTC (rev 21270)
@@ -50,7 +50,7 @@
protected AjaxSelenium selenium = AjaxSeleniumProxy.getInstance();
LocatorReference<ExtendedLocator<JQueryLocator>> root = new
LocatorReference<ExtendedLocator<JQueryLocator>>(
pjq(""));
- ReferencedLocator<JQueryLocator> propertyLocator = referenceInferred(root,
"*[id*={0}Input]{1}");
+ ReferencedLocator<JQueryLocator> propertyLocator = referenceInferred(root,
"*[id$=\\:{0}Input]{1}");
RequestType requestType = RequestType.HTTP;
@@ -67,8 +67,8 @@
}
protected void setProperty(String propertyName, Object value) {
- ExtendedLocator<JQueryLocator> locator =
propertyLocator.format(propertyName);
- final AttributeLocator<?> typeLocator =
locator.format("").getAttribute(Attribute.TYPE);
+ ExtendedLocator<JQueryLocator> locator =
propertyLocator.format(propertyName, "");
+ final AttributeLocator<?> typeLocator =
locator.getAttribute(Attribute.TYPE);
final ExtendedLocator<JQueryLocator> optionLocator =
locator.getChild(jq("option"));
String inputType = null;
Show replies by date