• Executes the specified JavaScript in the active tab of the target browser.

    Parameters

    • script: string

      The JavaScript to execute.

    • Optional browserName: string

      The name of the browser to execute the script in. If not specified, the active browser will be used.

    Returns Promise<string>

    A promise resolving to the result of executing the JavaScript.

Generated using TypeDoc