Interface SupportsMarionettePortOption<T extends BaseOptions<T>>
-
- All Superinterfaces:
CanSetCapability<T>
,org.openqa.selenium.Capabilities
,java.io.Serializable
- All Known Implementing Classes:
GeckoOptions
public interface SupportsMarionettePortOption<T extends BaseOptions<T>> extends org.openqa.selenium.Capabilities, CanSetCapability<T>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
MARIONETTE_PORT_OPTION
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.util.Optional<java.lang.Integer>
getMarionettePort()
Get the number of the port for the Marionette server to listen on.default T
setMarionettePort(int port)
Selects the port for Geckodriver’s connection to the Marionette remote protocol.-
Methods inherited from interface io.appium.java_client.remote.options.CanSetCapability
amend, setCapability
-
-
-
-
Field Detail
-
MARIONETTE_PORT_OPTION
static final java.lang.String MARIONETTE_PORT_OPTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
setMarionettePort
default T setMarionettePort(int port)
Selects the port for Geckodriver’s connection to the Marionette remote protocol. The existing Firefox instance must have Marionette enabled. To enable the remote protocol in Firefox, you can pass the -marionette flag. Unless the marionette.port preference has been user-set, Marionette will listen on port 2828, which is the default value for this capability.- Parameters:
port
- port number in range 0..65535- Returns:
- self instance for chaining.
-
getMarionettePort
default java.util.Optional<java.lang.Integer> getMarionettePort()
Get the number of the port for the Marionette server to listen on.- Returns:
- Marionette port value.
-
-