(event)
| 73 | } |
| 74 | |
| 75 | handleInput(event) { |
| 76 | const target = event.target; |
| 77 | |
| 78 | // Skip file inputs - they're handled by change event only |
| 79 | if (target.type === 'file') return; |
| 80 | |
| 81 | // Record input for dropdown detection correlation (always, even if not recording) |
| 82 | if (this.dropdownDetector) { |
| 83 | this.dropdownDetector.recordInput(target, target.value); |
| 84 | } |
| 85 | |
| 86 | this.sendMessage({ |
| 87 | message: "recState" |
| 88 | }, (response) => { |
| 89 | if (response && response.recState) { |
| 90 | const xpaths = this.getXpaths(target); |
| 91 | |
| 92 | this.sendMessage({ |
| 93 | message: "onInput", |
| 94 | xPath: xpaths, |
| 95 | content: target.value, |
| 96 | locator: getPlaywrightSelector(target) |
| 97 | }); |
| 98 | } else { |
| 99 | console.log('❌ Recording not active, input ignored'); |
| 100 | } |
| 101 | }); |
| 102 | } |
| 103 | |
| 104 | async handleChange(event) { |
| 105 | // Check recording state first |
nothing calls this directly
no test coverage detected