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

Method setParam

javascript/selenium-webdriver/lib/webdriver.js:2167–2174  ·  view source on GitHub ↗
(key, value)

Source from the content-addressed store, hash-verified

2165 let valid = false
2166
2167 function setParam(key, value) {
2168 if (value === null || typeof value === 'number') {
2169 valid = true
2170 cmd.setParameter(key, value)
2171 } else if (typeof value !== 'undefined') {
2172 throw TypeError('invalid timeouts configuration:' + ` expected "${key}" to be a number, got ${typeof value}`)
2173 }
2174 }
2175
2176 setParam('implicit', implicit)
2177 setParam('pageLoad', pageLoad)

Callers

nothing calls this directly

Calls 1

setParameterMethod · 0.80

Tested by

no test coverage detected