Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/SeleniumHQ/selenium
/ pin
Method
pin
javascript/selenium-webdriver/lib/script.js:115–118 ·
view source on GitHub ↗
(script)
Source
from the content-addressed store, hash-verified
113
}
114
115
async
pin(script) {
116
await
this.#initScript()
117
return
await
this.#script.addPreloadScript(script)
118
}
119
120
async
unpin(id) {
121
await
this.#initScript()
Callers
3
test_pin_returns_pinned_script
Function · 0.95
test_execute_with_pinned_script_returns_script_result
Function · 0.95
test_execute_with_pinned_script_reports_error
Function · 0.95
Calls
2
#initScript
Method · 0.95
addPreloadScript
Method · 0.45
Tested by
3
test_pin_returns_pinned_script
Function · 0.76
test_execute_with_pinned_script_returns_script_result
Function · 0.76
test_execute_with_pinned_script_reports_error
Function · 0.76