function clickButtonById(buttonId) { const button = document.querySelector(buttonId); if (button) { button.click(); } else { console.warn('Button not found:', buttonId); } }