Interface SupportsChromedriverPortOption<T extends BaseOptions<T>>

    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default java.util.Optional<java.lang.Integer> getChromedriverPort()
      Get the local port number to use for Chromedriver communication.
      default T setChromedriverPort​(int port)
      The port number to use for Chromedriver communication.
      • Methods inherited from interface org.openqa.selenium.Capabilities

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

      • CHROMEDRIVER_PORT_OPTION

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

      • setChromedriverPort

        default T setChromedriverPort​(int port)
        The port number to use for Chromedriver communication. Any free port number is selected by default if unset.
        Parameters:
        port - port number in range 0..65535
        Returns:
        self instance for chaining.
      • getChromedriverPort

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