Interface SupportsSystemPortOption<T extends BaseOptions<T>>

  • All Superinterfaces:
    CanSetCapability<T>, org.openqa.selenium.Capabilities, java.io.Serializable

    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 number of the port for the internal server to listen on.
      default T setSystemPort​(int port)
      The number of the port for the driver to listen 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 for the driver to listen on. Must be unique for each session. If not provided then Appium will try to detect it automatically.
        Parameters:
        port - port number in range 0..65535
        Returns:
        self instance for chaining.
      • getSystemPort

        default java.util.Optional<java.lang.Integer> getSystemPort()
        Get the number of the port for the internal server to listen on.
        Returns:
        System port value.