// Opens the menu of the CSV icon in the Libreria (spec §4.10, tappa E2; composed from mockup 01): «Esporta l'elenco // (CSV)» and «Copia i file in…». The address chooses «Copie: Copiati», so every tile has the copy mark. const sleep = (ms) => new Promise((r) => setTimeout(r, ms)); const button = () => [...document.querySelectorAll('.strumenti button')].find((b) => (b.getAttribute('aria-label') || '').startsWith('Esporta')); for (let i = 0; i < 50 && !(button() && document.querySelector('.tess[data-id]')); i++) await sleep(100); button().click(); await sleep(600); return [document.querySelector('.quanti')?.textContent, document.querySelector('.menu')?.textContent];