How can Puppeteer be utilized to trigger a form submission programmatically?

How do I automate form submission with Puppeteer when no submit button exists? For instance:

const agent = await require('puppeteer').launch();
const tab = await agent.newPage();
await tab.goto('https://example.com');
await tab.keyboard.press('Enter');
await agent.close();

i’ve used page.evaluate(() => document.querySelector(‘form’).submit()) to trigger the event. works fine even without a submit btn. just ensure the selector targets the right form el.