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

Method __set__

py/selenium/webdriver/common/options.py:137–141  ·  view source on GitHub ↗
(self, obj, value)

Source from the content-addressed store, hash-verified

135 return obj._caps.get(self.name)
136
137 def __set__(self, obj, value):
138 if all(x in ("implicit", "pageLoad", "script") for x in value.keys()):
139 obj.set_capability(self.name, value)
140 else:
141 raise ValueError("Timeout keys can only be one of the following: implicit, pageLoad, script")
142
143
144class _ProxyDescriptor:

Callers

nothing calls this directly

Calls 2

set_capabilityMethod · 0.80
keysMethod · 0.45

Tested by

no test coverage detected