Class CommandTimeouts
java.lang.Object
io.appium.java_client.remote.options.BaseMapOptionData<CommandTimeouts>
io.appium.java_client.ios.options.other.CommandTimeouts
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCommandTimeout(String commandName) Get the command timeout.withCommandTimeout(String commandName, Duration timeout) Sets the timeout for the particular Appium command that is proxied to WDA.withDefaultCommandTimeout(Duration timeout) Sets the default timeout for all Appium commands that are proxied to WDA.Methods inherited from class io.appium.java_client.remote.options.BaseMapOptionData
assignOptionValue, getOptionValue, toJson, toMap, toString
-
Field Details
-
DEFAULT_COMMAND
- See Also:
-
-
Constructor Details
-
CommandTimeouts
public CommandTimeouts() -
CommandTimeouts
-
CommandTimeouts
-
-
Method Details
-
withCommandTimeout
Sets the timeout for the particular Appium command that is proxied to WDA. Command names you can find in logs, look for "Executing command 'command_name'" records. Timeout value is expected to contain max milliseconds to wait for the given WDA command to be executed before terminating the session forcefully.- Parameters:
commandName- The command name.timeout- Command timeout.- Returns:
- self instance for chaining.
-
withDefaultCommandTimeout
Sets the default timeout for all Appium commands that are proxied to WDA.- Parameters:
timeout- Commands timeout.- Returns:
- self instance for chaining.
-
getCommandTimeout
Get the command timeout.- Parameters:
commandName- The command name- Returns:
- Timeout value.
-