Fix phone country code search input being flagged as unknown
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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(() => {});
|
||||
|
||||
Reference in New Issue
Block a user