Interface SupportsCommandTimeoutsOption<T extends BaseOptions<T>>
-
- All Superinterfaces:
CanSetCapability<T>
,org.openqa.selenium.Capabilities
,java.io.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 java.lang.String
COMMAND_TIMEOUTS_OPTION
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.util.Optional<org.openqa.selenium.internal.Either<CommandTimeouts,java.time.Duration>>
getCommandTimeouts()
Get custom timeout(s) in milliseconds for WDA backend commands execution.default T
setCommandTimeouts(CommandTimeouts timeouts)
Custom timeout(s) in milliseconds for WDA backend commands execution.default T
setCommandTimeouts(java.time.Duration timeout)
Custom timeout for all WDA backend commands execution.-
Methods inherited from interface io.appium.java_client.remote.options.CanSetCapability
amend, setCapability
-
-
-
-
Field Detail
-
COMMAND_TIMEOUTS_OPTION
static final java.lang.String COMMAND_TIMEOUTS_OPTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
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(java.time.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 java.util.Optional<org.openqa.selenium.internal.Either<CommandTimeouts,java.time.Duration>> getCommandTimeouts()
Get custom timeout(s) in milliseconds for WDA backend commands execution.- Returns:
- Either a global timeout duration or detailed command timeouts.
-
-