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

Function href

javascript/selenium-webdriver/extract_bidi_anchors.mjs:61–61  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

59 const ids = new Set([...html.matchAll(/id=(?:"([^"]+)"|'([^']+)')/g)].map((m) => m[1] ?? m[2]))
60 const index = { modules: {}, types: {}, commands: {}, events: {} }
61 const href = (id) => `${base.replace(/#.*$/, '').replace(/\/?$/, '/')}#${id}`
62 for (const id of ids) {
63 const parts = id.split('-')
64 // `module-<domain>` (exactly; skip sub-sections like module-browser-commands).

Callers 1

extractAnchorsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected