Interface SupportsWebviewDevtoolsPortOption<T extends BaseOptions<T>>
-
- All Superinterfaces:
CanSetCapability<T>
,org.openqa.selenium.Capabilities
,java.io.Serializable
- All Known Implementing Classes:
EspressoOptions
,UiAutomator2Options
public interface SupportsWebviewDevtoolsPortOption<T extends BaseOptions<T>> extends org.openqa.selenium.Capabilities, CanSetCapability<T>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
WEBVIEW_DEVTOOLS_PORT_OPTION
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.util.Optional<java.lang.Integer>
getWebviewDevtoolsPort()
Get the local port number to use for devtools communication.default T
setWebviewDevtoolsPort(int port)
The local port number to use for devtools communication.-
Methods inherited from interface io.appium.java_client.remote.options.CanSetCapability
amend, setCapability
-
-
-
-
Field Detail
-
WEBVIEW_DEVTOOLS_PORT_OPTION
static final java.lang.String WEBVIEW_DEVTOOLS_PORT_OPTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
setWebviewDevtoolsPort
default T setWebviewDevtoolsPort(int port)
The local port number to use for devtools communication. By default, the first free port from 10900..11000 range is selected. Consider setting the custom value if you are running parallel tests.- Parameters:
port
- port number in range 0..65535- Returns:
- self instance for chaining.
-
getWebviewDevtoolsPort
default java.util.Optional<java.lang.Integer> getWebviewDevtoolsPort()
Get the local port number to use for devtools communication.- Returns:
- Port number.
-
-