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

Method toJSON

javascript/selenium-webdriver/lib/logging.js:676–682  ·  view source on GitHub ↗

* Converts this instance to its JSON representation. * @return {!Object } The JSON representation of this set of * preferences.

()

Source from the content-addressed store, hash-verified

674 * preferences.
675 */
676 toJSON() {
677 let json = {}
678 for (let key of this.prefs_.keys()) {
679 json[key] = this.prefs_.get(key).name
680 }
681 return json
682 }
683}
684
685// PUBLIC API

Callers

nothing calls this directly

Calls 2

getMethod · 0.65
keysMethod · 0.45

Tested by

no test coverage detected