INNER CODE UNIT · Java
name
appium/java-client · src/main/java/io/appium/java_client/AppiumBy.java:151
public static By name(final String selector) {
return new ByName(selector);
}
/**
* This type of locator requires the use of the 'customFindModules' capability and a
* separately-installed element finding plugin.
*
* @param selector selector to pass to the custom element finding plugin
* @return an instance of {@link ByCustom}
* @since Appium 1.9.2
*/
public static By custom(final String selector) {
return new ByCustom(selector);
}
/**
* This locator strategy is available only if OpenCV libraries and