Interface SupportsWaitForIdleTimeoutOption<T extends BaseOptions<T>>

    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default java.util.Optional<java.time.Duration> getWaitForIdleTimeout()
      Get the maximum timeout to wait until WDA responds to HTTP requests.
      default T setWaitForIdleTimeout​(java.time.Duration timeout)
      The time to wait until the application under test is idling.
      • Methods inherited from interface org.openqa.selenium.Capabilities

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

      • WAIT_FOR_IDLE_TIMEOUT_OPTION

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

      • setWaitForIdleTimeout

        default T setWaitForIdleTimeout​(java.time.Duration timeout)
        The time to wait until the application under test is idling. XCTest requires the app's main thread to be idling in order to execute any action on it, so WDA might not even start/freeze if the app under test is constantly hogging the main thread. The default value is 10 (seconds). Setting it to zero disables idling checks completely (not recommended) and has the same effect as setting waitForQuiescence to false. Available since Appium 1.20.0.
        Parameters:
        timeout - Idle timeout.
        Returns:
        self instance for chaining.
      • getWaitForIdleTimeout

        default java.util.Optional<java.time.Duration> getWaitForIdleTimeout()
        Get the maximum timeout to wait until WDA responds to HTTP requests.
        Returns:
        Timeout value.