Interface CommandExecutor

Handles the execution of {@code webdriver.Command} objects.

Index

Methods

Methods

public execute(command: Command, callback: (error: Error, responseObject: any) => any)

Executes the given {@code command}. If there is an error executing the command, the provided callback will be invoked with the offending error. Otherwise, the callback will be invoked with a null Error and non-null {@link bot.response.ResponseObject} object.

Parameters

  • command: Command

    The command to execute.

  • callback: (error: Error, responseObject: any) => any

    the function to invoke when the command response is ready.