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

Method isId

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

3244 * @return {boolean} whether the object is a valid encoded WebElement ID.
3245 */
3246 static isId(obj) {
3247 return obj && typeof obj === 'object' && typeof obj[SHADOW_ROOT_ID_KEY] === 'string'
3248 }
3249
3250 /**
3251 * @return {!Object} Returns the serialized representation of this ShadowRoot.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected