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

Function findByName

javascript/selenium-webdriver/bidi/realmInfo.js:33–39  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

findMethod · 0.80
valuesMethod · 0.80

Tested by

no test coverage detected