Interface SupportsUiautomator2ServerReadTimeoutOption<T extends BaseOptions<T>>

    • Field Detail

      • UIAUTOMATOR2_SERVER_READ_TIMEOUT_OPTION

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

      • setUiautomator2ServerReadTimeout

        default T setUiautomator2ServerReadTimeout​(java.time.Duration timeout)
        Set the maximum timeout to wait for a HTTP response from UiAutomator2Server. Only values greater than zero are accepted. If the given value is too low then expect driver commands to fail with timeout of Xms exceeded error. 240000 ms by default
        Parameters:
        timeout - Timeout value.
        Returns:
        self instance for chaining.
      • getUiautomator2ServerReadTimeout

        default java.util.Optional<java.time.Duration> getUiautomator2ServerReadTimeout()
        Get the maximum timeout to wait for a HTTP response from UiAutomator2Server.
        Returns:
        The timeout value.