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 ) || '' ) .β¦