* @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)
| 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. |
no outgoing calls
no test coverage detected