Get the text content, or empty string if the element is missing.
()
| 61 | |
| 62 | /** Get the text content, or empty string if the element is missing. */ |
| 63 | text(): string { |
| 64 | if (!this.el) return '' |
| 65 | return this.el.textContent ?? '' |
| 66 | } |
| 67 | |
| 68 | /** Whether the underlying element actually exists. */ |
| 69 | exists(): boolean { |
no outgoing calls