MCPcopy
hub / github.com/codeceptjs/CodeceptJS / getElementId

Function getElementId

lib/helper/WebDriver.js:3308–3321  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

3306}
3307
3308function getElementId(el) {
3309 // W3C WebDriver web element identifier
3310 // https://w3c.github.io/webdriver/#dfn-web-element-identifier
3311 if (el['element-6066-11e4-a52e-4f735466cecf']) {
3312 return el['element-6066-11e4-a52e-4f735466cecf']
3313 }
3314 // (deprecated) JsonWireProtocol identifier
3315 // https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#webelement-json-object
3316 if (el.ELEMENT) {
3317 return el.ELEMENT
3318 }
3319
3320 return null
3321}
3322
3323// List of known key values to unicode code points
3324// https://www.w3.org/TR/webdriver/#keyboard-actions

Callers 15

clickMethod · 0.85
clearFieldMethod · 0.85
checkOptionMethod · 0.85
uncheckOptionMethod · 0.85
grabTextFromAllMethod · 0.85
scrollToMethod · 0.85
waitForEnabledMethod · 0.85
waitForTextMethod · 0.85
proceedSeeFunction · 0.85
proceedSeeFieldFunction · 0.85
proceedMultipleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected