2 ms·
Time to write a Playwright script. const { chromium } = require('playwright'); (async () => { // Launch the browser const browser = await chromium.lau
by 999900000999 2y ago
Time to write a Playwright script.
const { chromium } = require('playwright');
(async () => {
// Launch the browser
const browser = await chromium.launch({ headless: false });
const context = await browser.newContext();
const page = await context.newPage();
// Navigate to your page
await page.goto('https://example.com'); // Replace with the actual URL
// Click all checkboxes
await page.$$eval('input[type=checkbox]', checkboxes => {
checkboxes.forEach(checkbox => checkbox.click());
});
// Close the browser
await browser.close();
})();
I'm proud of myself for getting the chill alert without even running a script, just frantically tapping with my fingers!