
io.appium.java_client.flutter.commands.FlutterCommandParameter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-client Show documentation
Show all versions of java-client Show documentation
Java client for Appium Mobile Webdriver
The newest version!
package io.appium.java_client.flutter.commands;
import io.appium.java_client.AppiumBy;
import org.openqa.selenium.By;
import java.util.Map;
public abstract class FlutterCommandParameter {
/**
* Parses an Appium Flutter locator into a Map representation suitable for Flutter Integration Driver.
*
* @param by The FlutterBy instance representing the locator to parse.
* @return A Map containing the parsed locator information with keys using and value.
*/
protected static Map parseFlutterLocator(AppiumBy.FlutterBy by) {
By.Remotable.Parameters parameters = by.getRemoteParameters();
return Map.of(
"using", parameters.using(),
"value", parameters.value()
);
}
public abstract Map toJson();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy