MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / constructor

Method constructor

javascript/selenium-webdriver/firefox.js:163–169  ·  view source on GitHub ↗

* @param {(Capabilities|Map |Object)=} other Another set of * capabilities to initialize this instance from.

(other)

Source from the content-addressed store, hash-verified

161 * capabilities to initialize this instance from.
162 */
163 constructor(other) {
164 super(other)
165 this.setBrowserName(Browser.FIREFOX)
166 // https://fxdx.dev/deprecating-cdp-support-in-firefox-embracing-the-future-with-webdriver-bidi/.
167 // Enable BiDi only
168 this.setPreference('remote.active-protocols', 1)
169 }
170
171 /**
172 * @return {!Object}

Callers

nothing calls this directly

Calls 2

setPreferenceMethod · 0.95
setBrowserNameMethod · 0.45

Tested by

no test coverage detected