Interface SupportsWaitForIdleTimeoutOption<T extends BaseOptions<T>>

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

public interface SupportsWaitForIdleTimeoutOption<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 maximum timeout to wait until WDA responds to HTTP requests.
    default T
    The time to wait until the application under test is idling.

    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

    • setWaitForIdleTimeout

      default T setWaitForIdleTimeout(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 Optional<Duration> getWaitForIdleTimeout()
      Get the maximum timeout to wait until WDA responds to HTTP requests.
      Returns:
      Timeout value.