Interface SupportsMjpegServerPortOption<T extends BaseOptions<T>>

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

public interface SupportsMjpegServerPortOption<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
    default Optional<Integer>
    Get the number of the port UiAutomator2 server starts the MJPEG server on.
    default T
    The number of the port UiAutomator2 server starts the MJPEG server on.

    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

    • setMjpegServerPort

      default T setMjpegServerPort(int port)
      The number of the port UiAutomator2 server starts the MJPEG server on. If not provided then the screenshots broadcasting service on the remote device does not get exposed to a local port (e.g. no adb port forwarding is happening).
      Parameters:
      port - port number in range 0..65535
      Returns:
      self instance for chaining.
    • getMjpegServerPort

      default Optional<Integer> getMjpegServerPort()
      Get the number of the port UiAutomator2 server starts the MJPEG server on.
      Returns:
      Port number.