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

Function findByName

javascript/selenium-webdriver/bidi/protocolType.js:32–38  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

30 BIGINT: 'bigint',
31
32 findByName(name) {
33 return (
34 Object.values(this).find((type) => {
35 return typeof type === 'string' && name.toLowerCase() === type.toLowerCase()
36 }) || null
37 )
38 },
39}
40
41/**

Callers

nothing calls this directly

Calls 2

findMethod · 0.80
valuesMethod · 0.80

Tested by

no test coverage detected