Interface SupportsSystemPortOption<T extends BaseOptions<T>>
-
- All Superinterfaces:
CanSetCapability<T>
,org.openqa.selenium.Capabilities
,java.io.Serializable
- All Known Implementing Classes:
WindowsOptions
public interface SupportsSystemPortOption<T extends BaseOptions<T>> extends org.openqa.selenium.Capabilities, CanSetCapability<T>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SYSTEM_PORT_OPTION
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.util.Optional<java.lang.Integer>
getSystemPort()
Get the port number to execute Appium Windows Driver server listener on.default T
setSystemPort(int port)
The port number to execute Appium Windows Driver server listener on, for example 5556.-
Methods inherited from interface io.appium.java_client.remote.options.CanSetCapability
amend, setCapability
-
-
-
-
Field Detail
-
SYSTEM_PORT_OPTION
static final java.lang.String SYSTEM_PORT_OPTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
setSystemPort
default T setSystemPort(int port)
The port number to execute Appium Windows Driver server listener on, for example 5556. The port must not be occupied. The default starting port number for a new Appium Windows Driver session is 4724. If this port is already busy then the next free port will be automatically selected.- Parameters:
port
- port number in range 0..65535- Returns:
- self instance for chaining.
-
getSystemPort
default java.util.Optional<java.lang.Integer> getSystemPort()
Get the port number to execute Appium Windows Driver server listener on.- Returns:
- System port value.
-
-