INNER CODE UNIT · Java

formatLocator

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

        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");
        }
    }

    public static class ByFlutterKey extends FlutterBy implements Serializable {
        protected ByFlutterKey(String locatorString) {
            super("-flutter key", locatorString, "flutterKey");

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…