()
| 139 | } |
| 140 | |
| 141 | async getValue(): Promise<string> { |
| 142 | const input = await this.findTextarea(); |
| 143 | if (input) { |
| 144 | const isContentEditable = await input.getAttribute('contenteditable'); |
| 145 | |
| 146 | if (isContentEditable === 'true') { |
| 147 | // For contentEditable, get textContent |
| 148 | return await input.getText(); |
| 149 | } else { |
| 150 | // Regular textarea |
| 151 | return await input.getValue(); |
| 152 | } |
| 153 | } |
| 154 | return ''; |
| 155 | } |
| 156 | |
| 157 | async clear(): Promise<void> { |
| 158 | const input = await this.findTextarea(); |
no test coverage detected