INNER CODE UNIT · Java
flutterAncestor
appium/java-client · src/main/java/io/appium/java_client/AppiumBy.java:292
public static FlutterBy flutterAncestor(final FlutterBy of, final FlutterBy matching, boolean matchRoot) {
return new ByFlutterAncestor(of, matching, matchRoot);
}
/**
* This locator strategy is available in FlutterIntegration Driver mode since version 1.4.0.
*
* @param of represents the child widget locator
* @param matching represents the ancestor widget locator to match
* @return an instance of {@link AppiumBy.ByFlutterAncestor}
*/
public static FlutterBy flutterAncestor(final FlutterBy of, final FlutterBy matching) {
return flutterAncestor(of, matching, false);
}
public static class ByAccessibilityId extends AppiumBy implements Serializable {
public ByAccessibilityId(String accessibilityId) {
super("accessibility id", accessibilityId, "accessibilityId");