Interface SupportsWdaEventloopIdleDelayOption<T extends BaseOptions<T>>

    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default java.util.Optional<java.time.Duration> getWdaEventloopIdleDelay()
      Get the event loop idle delay.
      default T setWdaEventloopIdleDelay​(java.time.Duration duration)
      Delays the invocation of -[XCUIApplicationProcess setEventLoopHasIdled:] by the duration specified with this capability.
      • Methods inherited from interface org.openqa.selenium.Capabilities

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

      • WDA_EVENTLOOP_IDLE_DELAY_OPTION

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

      • setWdaEventloopIdleDelay

        default T setWdaEventloopIdleDelay​(java.time.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 java.util.Optional<java.time.Duration> getWdaEventloopIdleDelay()
        Get the event loop idle delay.
        Returns:
        Idle duration.