Reference Source
import ChromeFinder from 'squidwarc/lib/launcher/chromeFinder.js'
public class | source

ChromeFinder

Utility class that provides functionality for finding an suitable chrome executable

Static Method Summary

Static Public Methods
public static

Finds an acceptable Chrome or Chromium executable.

public static

Finds an acceptable Chrome or Chromium executable on MacOS If one is not found throws

public static

Finds an acceptable Chrome or Chromium executable on Linux If one is not found throws

public static

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

Return:

Promise<string>

public static async findChromeDarwin(): Promise<string> source

Finds an acceptable Chrome or Chromium executable on MacOS If one is not found throws

Return:

Promise<string>

Throw:

*

Error - If an acceptable executable was not found

public static async findChromeLinux(): Promise<string> source

Finds an acceptable Chrome or Chromium executable on Linux If one is not found throws

Return:

Promise<string>

Throw:

*

Error - If an acceptable executable was not found

public static async findChromeWindows(): Promise<string> source

Finds an acceptable Chrome or Chromium executable on Windows If one is not found throws

Return:

Promise<string>

Throw:

*

Error - If an acceptable executable was not found