timeout? | number | A timeout to wait for the script to finish evaluating, overriding any defaults. Useful for async scripts that may be longer running. Defaults to the session's default timeout: 30 seconds (30000) unless changed with the preferences mutation. Pass 0 for no limit; negative values are rejected. A script that runs longer fails with a "timed out" error. A script still running synchronously (for example a busy loop) is stopped; work it has already scheduled, such as timers or pending promises, keeps running in the page. With url, a positive limit also covers downloading the script; otherwise the download is limited to 10 seconds. |