* Retrieve the current element value. * * @param {HTMLElement|HTMLInputElement|EventTarget} element * @returns {string|null}
(element)
| 1262 | * @returns {string|null} |
| 1263 | */ |
| 1264 | static getElementValue(element) { |
| 1265 | if (element.tagName.toLowerCase() === 'input') { |
| 1266 | return element.value; |
| 1267 | } |
| 1268 | |
| 1269 | return this.text(element); |
| 1270 | } |
| 1271 | |
| 1272 | /** |
| 1273 | * Modify the element value directly. |
no test coverage detected