Author: lfryc(a)redhat.com
Date: 2010-12-06 12:55:58 -0500 (Mon, 06 Dec 2010)
New Revision: 20415
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/jboss/test/selenium/locator/reference/ReferencedLocator.java
Log:
added factory method ReferencedLocator.ref(..) for referencing using ReferencedLocator as
reference
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/jboss/test/selenium/locator/reference/ReferencedLocator.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/jboss/test/selenium/locator/reference/ReferencedLocator.java 2010-12-06
17:55:11 UTC (rev 20414)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/jboss/test/selenium/locator/reference/ReferencedLocator.java 2010-12-06
17:55:58 UTC (rev 20415)
@@ -57,6 +57,11 @@
result.reference = reference;
return result;
}
+
+ public static <N extends ExtendedLocator<N>> ReferencedLocator<N>
ref(ReferencedLocator<N> referencedLocator, String locator) {
+ LocatorReference<ExtendedLocator<N>> reference = new
LocatorReference<ExtendedLocator<N>>(referencedLocator);
+ return referenceInferred(reference, locator);
+ }
public T getReferenced() {
ExtendedLocator<T> referencedLocator = reference.getLocator();
Show replies by date