INNER CODE UNIT · Java

parseFlutterLocator

appium/java-client · src/main/java/io/appium/java_client/AppiumBy.java:397

        static Map<String, Object> parseFlutterLocator(FlutterBy by) {
            Parameters params = by.getRemoteParameters();
            return Map.of("using", params.using(), "value", params.value());
        }

        static String formatLocator(FlutterBy of, FlutterBy matching, Map<String, Object> properties) {
            Map<String, Object> locator = new HashMap<>();
            locator.put("of", parseFlutterLocator(of));
            locator.put("matching", parseFlutterLocator(matching));
            locator.put("parameters", properties);
            return JSON.toJson(locator);
        }
    }

    public static class ByFlutterType extends FlutterBy implements Serializable {
        protected ByFlutterType(String locatorString) {
            super("-flutter type", locatorString, "flutterType");
        }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…