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

Method buildId

javascript/selenium-webdriver/lib/webdriver.js:2674–2676  ·  view source on GitHub ↗

* @param {string} id The raw ID. * @param {boolean=} noLegacy Whether to exclude the legacy element key. * @return {!Object} The element ID for use with WebDriver's wire protocol.

(id, noLegacy = false)

Source from the content-addressed store, hash-verified

2672 * @return {!Object} The element ID for use with WebDriver's wire protocol.
2673 */
2674 static buildId(id, noLegacy = false) {
2675 return noLegacy ? { [ELEMENT_ID_KEY]: id } : { [ELEMENT_ID_KEY]: id, [LEGACY_ELEMENT_ID_KEY]: id }
2676 }
2677
2678 /**
2679 * Extracts the encoded WebElement ID from the object.

Callers 4

onSwitchFrameFunction · 0.80
until_test.jsFile · 0.80
http_test.jsFile · 0.80
webdriver_test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected