const sleep=ms=>new Promise(r=>setTimeout(r,ms)); const propsOf = el => { for (const k of Object.keys(el)) if (k.startsWith('__reactProps$')) return el[k]; return null; }; const fire = (el) => { let t = el; for (let i=0;i<6&&t;i++){const q=propsOf(t); if(q&&typeof q.onClick==='function'){q.onClick({target:t,currentTarget:t,stopPropagation(){},preventDefault(){},nativeEvent:{},button:0,detail:1});return true;} t=t.parentElement;} return false; }; const out={}; for (const NAME of ['导线到过孔 (2)','贴片焊盘到过孔 (1)','过孔到过孔 (1)','导线到导线 (2)']) { let leaf=null; for (const el of document.querySelectorAll('*')) if (el.children.length===0 && (el.textContent||'').trim()===NAME) { leaf=el; break; } if(!leaf){ out[NAME]='no leaf'; continue; } fire(leaf); await sleep(2000); let best=null; for (const el of document.querySelectorAll('div,table,tbody')) { const x = el.innerText||''; if (/错误对象/.test(x) && /[0-9](间距|差分对)错误/.test(x) && (!best || x.length < best.length)) best = x; } out[NAME] = (best||'').split('input::-webkit')[0].slice(0,900); } return out;