(x: number, y: number, text: string, delayMs = 0)
| 269 | } |
| 270 | |
| 271 | export async function fillLinux(x: number, y: number, text: string, delayMs = 0): Promise<void> { |
| 272 | // Click to focus the field |
| 273 | await pressLinux(x, y); |
| 274 | await sleep(100); |
| 275 | // Select all existing text (Ctrl+A scancodes: Ctrl=29, A=30) |
| 276 | await sendKey('ctrl+a', ['29:1', '30:1', '30:0', '29:0']); |
| 277 | await sleep(50); |
| 278 | // Type replacement text |
| 279 | await typeLinux(text, delayMs); |
| 280 | } |
no test coverage detected