Interface SupportsCommandTimeoutsOption<T extends BaseOptions<T>>

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

public interface SupportsCommandTimeoutsOption<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
    default Optional<org.openqa.selenium.internal.Either<CommandTimeouts,Duration>>
    Get custom timeout(s) in milliseconds for WDA backend commands execution.
    default T
    Custom timeout(s) in milliseconds for WDA backend commands execution.
    default T
    Custom timeout for all WDA backend commands execution.

    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

    • setCommandTimeouts

      default T setCommandTimeouts(CommandTimeouts timeouts)
      Custom timeout(s) in milliseconds for WDA backend commands execution. This might be useful if WDA backend freezes unexpectedly or requires too much time to fail and blocks automated test execution.
      Parameters:
      timeouts - Command timeouts.
      Returns:
      self instance for chaining.
    • setCommandTimeouts

      default T setCommandTimeouts(Duration timeout)
      Custom timeout for all WDA backend commands execution. This might be useful if WDA backend freezes unexpectedly or requires too much time to fail and blocks automated test execution.
      Parameters:
      timeout - The timeout value for all commands.
      Returns:
      self instance for chaining.
    • getCommandTimeouts

      default Optional<org.openqa.selenium.internal.Either<CommandTimeouts,Duration>> getCommandTimeouts()
      Get custom timeout(s) in milliseconds for WDA backend commands execution.
      Returns:
      Either a global timeout duration or detailed command timeouts.