From c680105bc83b16e6806fa39f35f3faf8c0474b17 Mon Sep 17 00:00:00 2001 From: Matthew Jackson Date: Fri, 6 Mar 2026 21:01:53 -0800 Subject: [PATCH] Fix phone country code search input being flagged as unknown MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Skip inputs with placeholder="Search" or pre-filled values when they have a "Phone" label — these are country code pickers, not the actual phone input. Co-Authored-By: Claude Opus 4.6 --- lib/form_filler.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/form_filler.mjs b/lib/form_filler.mjs index 86148e2..1580ed2 100644 --- a/lib/form_filler.mjs +++ b/lib/form_filler.mjs @@ -587,8 +587,11 @@ Answer:`; const lbl = field.label; const ll = lbl.toLowerCase(); - // Phone — always overwrite + // Phone — fill if empty or tel type, skip country code search inputs if (ll.includes('phone') || ll.includes('mobile')) { + if (field.placeholder === 'Search' || field.value?.trim()) { + continue; // country code search or already filled + } const el = await byTag(field.tag); if (!el) continue; await el.click({ clickCount: 3 }).catch(() => {});