Interface SupportsWdaEventloopIdleDelayOption<T extends BaseOptions<T>>

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

public interface SupportsWdaEventloopIdleDelayOption<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 event loop idle delay.
    default T
    Delays the invocation of -[XCUIApplicationProcess setEventLoopHasIdled:] by the duration specified with this capability.

    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

    • setWdaEventloopIdleDelay

      default T setWdaEventloopIdleDelay(Duration duration)
      Delays the invocation of -[XCUIApplicationProcess setEventLoopHasIdled:] by the duration specified with this capability. This can help quiescence apps that fail to do so for no obvious reason (and creating a session fails for that reason). This increases the time for session creation because -[XCUIApplicationProcess setEventLoopHasIdled:] is called multiple times. If you enable this capability start with at least 3 seconds and try increasing it, if creating the session still fails. Defaults to 0.
      Parameters:
      duration - Idle duration.
      Returns:
      self instance for chaining.
    • getWdaEventloopIdleDelay

      default Optional<Duration> getWdaEventloopIdleDelay()
      Get the event loop idle delay.
      Returns:
      Idle duration.