Interface SupportsSystemPortOption<T extends BaseOptions<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 system port value.
      default T setSystemPort​(int port)
      The number of the port the UiAutomator2 or Espresso server is listening on.
      • Methods inherited from interface org.openqa.selenium.Capabilities

        asMap, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatform, getPlatformName, getVersion, is, merge
    • Field Detail

    • Method Detail

      • setSystemPort

        default T setSystemPort​(int port)
        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

        default java.util.Optional<java.lang.Integer> getSystemPort()
        Get the system port value.
        Returns:
        System port value