Interface SupportsMjpegServerPortOption<T extends BaseOptions<T>>

    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default java.util.Optional<java.lang.Integer> getMjpegServerPort()
      Get the number of the port UiAutomator2 server starts the MJPEG server on.
      default T setMjpegServerPort​(int port)
      The number of the port UiAutomator2 server starts the MJPEG server on.
      • Methods inherited from interface org.openqa.selenium.Capabilities

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

      • MJPEG_SERVER_PORT_OPTION

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

      • 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 java.util.Optional<java.lang.Integer> getMjpegServerPort()
        Get the number of the port UiAutomator2 server starts the MJPEG server on.
        Returns:
        Port number.