Result of a script injection.

interface InjectionResult {
    error?: any;
    frameId: number;
    result?: any;
}
Index
error?: any

The error property is set when the script execution failed. The value is typically an (Error) object with a message property, but could be any value (including primitives and undefined) if the script threw or rejected with such a value.

frameId: number

The frame ID associated with the injection.

result?: any

The result of the script execution.