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 -
Method Summary
Modifier and TypeMethodDescriptiondefault Optional<org.openqa.selenium.internal.Either<CommandTimeouts,Duration>> Get custom timeout(s) in milliseconds for WDA backend commands execution.default TsetCommandTimeouts(CommandTimeouts timeouts) Custom timeout(s) in milliseconds for WDA backend commands execution.default TsetCommandTimeouts(Duration timeout) Custom timeout for all WDA backend commands execution.Methods inherited from interface io.appium.java_client.remote.options.CanSetCapability
amend, setCapabilityMethods inherited from interface org.openqa.selenium.Capabilities
asMap, get, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatformName, is, merge, required
-
Field Details
-
COMMAND_TIMEOUTS_OPTION
- See Also:
-
-
Method Details
-
setCommandTimeouts
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
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.
-