selenium-webdriver/firefox~ Channel

Provides methods for locating the executable for a Firefox release channel on Windows and MacOS. For other systems (i.e. Linux), Firefox will always be located on the system PATH.

Constructor

new Channel(darwin, win32)

Parameters:
NameTypeDescription
darwinstring

The path to check when running on MacOS.

win32string

The path to check when running on Windows.

Deprecated
  • Instead of using this class, you should configure the Options with the appropriate binary location or let Selenium Manager handle it for you.

Members

(static, constant) BETA

Firefox's beta channel. Note this is provided mainly for convenience as the beta channel has the same installation location as the main release channel.

(static, constant) DEV

Firefox's developer channel.

(static, constant) NIGHTLY

Firefox's nightly release channel.

(static, constant) RELEASE

Firefox's release channel.

Methods

Symbols.serialize() → (non-null) {Promise.<string>}

Returns:
Type: 
Promise.<string>

locate() → (non-null) {Promise.<string>}

Attempts to locate the Firefox executable for this release channel. This will first check the default installation location for the channel before checking the user's PATH. The returned promise will be rejected if Firefox can not be found.

Returns:

A promise for the location of the located Firefox executable.

Type: 
Promise.<string>