MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / botError

Function botError

javascript/atoms/typescript/find-elements.ts:28–32  ·  view source on GitHub ↗
(code: string, message: string)

Source from the content-addressed store, hash-verified

26 const NO_SUCH_ELEMENT = 'no such element'
27
28 function botError(code: string, message: string): Error {
29 const err = new Error(message)
30 ;(err as unknown as Record<string, unknown>)['code'] = code
31 return err
32 }
33
34 function cssEscapeId(s: string): string {
35 return s.replace(/[\s'"\\#.:;,!?+<>=~*^$|%&@`{}\-/\[\]()]/g, (c) => '\\' + c)

Callers 7

classNameManyFunction · 0.85
cssManyFunction · 0.85
tagNameManyFunction · 0.85
xpathManyFunction · 0.85
resolveAnchorFunction · 0.85
relativeManyFunction · 0.85
find-elements.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected