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

Function cssEscapeId

javascript/atoms/typescript/find-elements.ts:34–36  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

32 }
33
34 function cssEscapeId(s: string): string {
35 return s.replace(/[\s'"\\#.:;,!?+<>=~*^$|%&@`{}\-/\[\]()]/g, (c) => '\\' + c)
36 }
37
38 function classNameMany(target: string, root: Root): Element[] {
39 if (!target) {

Callers 1

idManyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected