Files
Febe/tools/schermate/passi/su-misura.js
T

8 lines
566 B
JavaScript

// Changes a value on «Limiti e comportamento»: the profile becomes «Su misura» and the save bar wakes up (spec §7.5).
await new Promise((r) => setTimeout(r, 500));
const input = document.querySelector('.tabella-tetti tbody tr:nth-child(2) td:nth-child(3) input');
input.value = '90';
input.dispatchEvent(new Event('input', { bubbles: true }));
await new Promise((r) => setTimeout(r, 300));
return [document.querySelector('.su-misura b')?.textContent, document.querySelector('.salva .nota')?.textContent, document.querySelector('.salva .btn.primo')?.disabled];