Interface SupportsSystemPortOption<T extends BaseOptions<T>>
- All Superinterfaces:
CanSetCapability<T>,org.openqa.selenium.Capabilities,Serializable
- All Known Implementing Classes:
EspressoOptions,UiAutomator2Options
public interface SupportsSystemPortOption<T extends BaseOptions<T>>
extends org.openqa.selenium.Capabilities, CanSetCapability<T>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGet the system port value.default TsetSystemPort(int port) The number of the port the UiAutomator2 or Espresso server is listening on.Methods inherited from interface io.appium.java_client.remote.options.CanSetCapability
amend, setCapabilityMethods inherited from interface org.openqa.selenium.Capabilities
asMap, get, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatformName, is, merge, required
-
Field Details
-
SYSTEM_PORT_OPTION
- See Also:
-
-
Method Details
-
setSystemPort
The number of the port the UiAutomator2 or Espresso server is listening on. By default, the first free port from 8200..8299 range is selected for UIA2 and 8300..8399 range is selected for Espresso. It is recommended to set this value if you are running parallel tests on the same machine.- Parameters:
port- port number in range 0..65535- Returns:
- self instance for chaining.
-
getSystemPort
Get the system port value.- Returns:
- System port value
-