Package de.xima.fc.e2e.junit.selector
Class XPaths
- java.lang.Object
-
- de.xima.fc.e2e.junit.selector.XPaths
-
public final class XPaths extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringclosestAncestorWithAnyClass(String... classes)Constructs an XPath that finds the closest ancestor element (relative to the node the XPath is applied to) that has any of the given classes.
-
-
-
Method Detail
-
closestAncestorWithAnyClass
public static String closestAncestorWithAnyClass(String... classes)
Constructs an XPath that finds the closest ancestor element (relative to the node the XPath is applied to) that has any of the given classes. Corresponds the Browser DOM API callelement.closest(".class1,.class2,...")- Parameters:
classes- Classes to search for.- Returns:
- An XPath for the closest element with any of the given classes.
-
-