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

Function isId

javascript/selenium-webdriver/lib/webelement.js:35–37  ·  view source on GitHub ↗

* @param {?} obj the object to test. * @return {boolean} whether the object is a valid encoded WebElement ID.

(obj)

Source from the content-addressed store, hash-verified

33 * @return {boolean} whether the object is a valid encoded WebElement ID.
34 */
35function isId(obj) {
36 return isObject(obj) && (typeof obj[ELEMENT_ID_KEY] === 'string' || typeof obj[LEGACY_ELEMENT_ID_KEY] === 'string')
37}
38
39/**
40 * Extracts the encoded WebElement ID from the object.

Callers

nothing calls this directly

Calls 1

isObjectFunction · 0.70

Tested by

no test coverage detected