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

Method set_preference

py/selenium/webdriver/firefox/options.py:65–67  ·  view source on GitHub ↗

Sets a preference.

(self, name: str, value: str | int | bool)

Source from the content-addressed store, hash-verified

63 return self._preferences
64
65 def set_preference(self, name: str, value: str | int | bool):
66 """Sets a preference."""
67 self._preferences[name] = value
68
69 @property
70 def profile(self) -> FirefoxProfile | None:

Callers 2

test_set_preferenceFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_set_preferenceFunction · 0.36