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

Method buildId

javascript/selenium-webdriver/lib/webdriver.js:2548–2550  ·  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

2546 * @return {!Object} The element ID for use with WebDriver's wire protocol.
2547 */
2548 static buildId(id, noLegacy = false) {
2549 return noLegacy ? { [ELEMENT_ID_KEY]: id } : { [ELEMENT_ID_KEY]: id, [LEGACY_ELEMENT_ID_KEY]: id }
2550 }
2551
2552 /**
2553 * 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