Interface SupportsChromedriverPortsOption<T extends BaseOptions<T>>

All Superinterfaces:
CanSetCapability<T>, org.openqa.selenium.Capabilities, Serializable
All Known Implementing Classes:
EspressoOptions, UiAutomator2Options

public interface SupportsChromedriverPortsOption<T extends BaseOptions<T>> extends org.openqa.selenium.Capabilities, CanSetCapability<T>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the local port number to use for Chromedriver communication.
    default T
    Array of possible port numbers to assign for Chromedriver communication.

    Methods inherited from interface io.appium.java_client.remote.options.CanSetCapability

    amend, setCapability

    Methods inherited from interface org.openqa.selenium.Capabilities

    asMap, get, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatformName, is, merge, required
  • Field Details

  • Method Details

    • setChromedriverPorts

      default T setChromedriverPorts(List<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 Optional<List<Integer>> getChromedriverPorts()
      Get the local port number to use for Chromedriver communication.
      Returns:
      Port number.