Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Mzbb6zeFTjT6Rp8b92AVkA
6 lines
376 B
JavaScript
6 lines
376 B
JavaScript
// Opens «Tutti i tetti» on the Attività page (spec §7.4: every category, hourly and daily).
|
|
await new Promise((r) => setTimeout(r, 500));
|
|
[...document.querySelectorAll('.testa-blocco .btn.collegamento')].find((b) => b.textContent.includes('tetti'))?.click();
|
|
await new Promise((r) => setTimeout(r, 600));
|
|
return document.querySelectorAll('.tutti-tetti tbody tr').length;
|