Class CommandTimeouts

    • Field Detail

    • Constructor Detail

      • CommandTimeouts

        public CommandTimeouts()
      • CommandTimeouts

        public CommandTimeouts​(java.util.Map<java.lang.String,​java.lang.Object> timeouts)
      • CommandTimeouts

        public CommandTimeouts​(java.lang.String json)
    • Method Detail

      • withCommandTimeout

        public CommandTimeouts withCommandTimeout​(java.lang.String commandName,
                                                  java.time.Duration timeout)
        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

        public CommandTimeouts withDefaultCommandTimeout​(java.time.Duration timeout)
        Sets the default timeout for all Appium commands that are proxied to WDA.
        Parameters:
        timeout - Commands timeout.
        Returns:
        self instance for chaining.
      • getCommandTimeout

        public java.util.Optional<java.time.Duration> getCommandTimeout​(java.lang.String commandName)
        Get the command timeout.
        Parameters:
        commandName - The command name
        Returns:
        Timeout value.