Interface SupportsChromedriverPortsOption<T extends BaseOptions<T>>

    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default java.util.Optional<java.util.List<java.lang.Integer>> getChromedriverPorts()
      Get the local port number to use for Chromedriver communication.
      default T setChromedriverPorts​(java.util.List<java.lang.Integer> ports)
      Array of possible port numbers to assign for Chromedriver communication.
      • Methods inherited from interface org.openqa.selenium.Capabilities

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

      • CHROMEDRIVER_PORTS_OPTION

        static final java.lang.String CHROMEDRIVER_PORTS_OPTION
        See Also:
        Constant Field Values
    • Method Detail

      • setChromedriverPorts

        default T setChromedriverPorts​(java.util.List<java.lang.Integer> ports)
        Array of possible port numbers to assign for Chromedriver communication. If none of the port in this array is free then a server error is thrown.
        Parameters:
        ports - one or more port numbers in range 0..65535
        Returns:
        self instance for chaining.
      • getChromedriverPorts

        default java.util.Optional<java.util.List<java.lang.Integer>> getChromedriverPorts()
        Get the local port number to use for Chromedriver communication.
        Returns:
        Port number.