ChromeFinder
Utility class that provides functionality for finding an suitable chrome executable
Static Method Summary
Static Public Methods | ||
public static |
async findChrome(): Promise<string> Finds an acceptable Chrome or Chromium executable. |
|
public static |
async findChromeDarwin(): Promise<string> Finds an acceptable Chrome or Chromium executable on MacOS If one is not found throws |
|
public static |
async findChromeLinux(): Promise<string> Finds an acceptable Chrome or Chromium executable on Linux If one is not found throws |
|
public static |
async findChromeWindows(): Promise<string> Finds an acceptable Chrome or Chromium executable on Windows If one is not found throws |
Static Public Methods
public static async findChrome(): Promise<string> source
Finds an acceptable Chrome or Chromium executable. If the env key 'CHROME_PATH' is defined that is returned by default
public static async findChromeDarwin(): Promise<string> source
Finds an acceptable Chrome or Chromium executable on MacOS If one is not found throws
Throw:
* |
Error - If an acceptable executable was not found |