
io.appium.java_client.flutter.options.SupportsFlutterSystemPortOption 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.options;
import io.appium.java_client.remote.options.BaseOptions;
import io.appium.java_client.remote.options.CanSetCapability;
import org.openqa.selenium.Capabilities;
import java.util.Optional;
import static io.appium.java_client.internal.CapabilityHelpers.toInteger;
public interface SupportsFlutterSystemPortOption> extends
Capabilities, CanSetCapability {
String FLUTTER_SYSTEM_PORT_OPTION = "flutterSystemPort";
/**
* Set the port where Flutter server starts.
*
* @param flutterSystemPort is the port number
* @return self instance for chaining.
*/
default T setFlutterSystemPort(int flutterSystemPort) {
return amend(FLUTTER_SYSTEM_PORT_OPTION, flutterSystemPort);
}
/**
* Get the number of the port Flutter server starts on the system.
*
* @return Port number
*/
default Optional getFlutterSystemPort() {
return Optional.ofNullable(toInteger(getCapability(FLUTTER_SYSTEM_PORT_OPTION)));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy