Menu

Five bugs that made my form-filling bot look like it had a 0% success rate
πŸ“°

Five bugs that made my form-filling bot look like it had a 0% success rate

DEV CommunityΒ·Louis LiΒ·about 11 hours ago
#lt1SzZk3
#dev#const#email#form#article
Reading 0:00
15s threshold

I built a Playwright script that fills submission forms on AI directories. It ran

for six hours across 235 sites and reported a 3% acceptance rate. Then I read the

evidence files and found five bugs in the classifier , not the forms. Fixing them

took an evening; finding them took a night of staring at screenshots.

If you are automating any form at scale, you will hit all five. They are not

framework bugs, they are the failure modes of asking a DOM questions in English.

1. A container's text is not the field's identity

My field descriptor collected, for each input, everything that might describe it:

const labelFor = el . id ? document . querySelector ( `label[for="${el.id}"]` ) : null ; const wrap = el . closest ( 'label' ) ; return { name : el . getAttribute ( 'name' ) || '' , label : ( ( labelFor && labelFor . textContent ) || ( wrap && wrap . textContent ) || '' ) .…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.