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(() => {});