Macro

Macro

Represents a stored macro script that can be executed in the context of a session.

See 06_macros for usage examples

Methods

run(macroArg) → {Promise}

Run this macro.

Parameters:
Name Type Description
macroArg Object

will be passed to the macro context as arg

Returns:

a that resolves to the return value of the macro script

Type
Promise

getId() → {String}

The unique id referencing this macro.

Returns:
Type
String

getName() → {String}

The macro's name.

Returns:
Type
String