1- Execution using NodeJS API
https://github.com/asadzakir/playwright-execution-api
API Endpoint
http://localhost:5000/api/pw/exe
API Payload
{ "playwright_test_steps": [ "await page.locator('body').click();", "await page.goto('https://sandbox.mabl.com/');", "await page.getByRole('button', { name: 'alert' }).click();", "page.once('dialog', (dialog) => { console.log(`Dialog message: ${dialog.message()}`); dialog.dismiss().catch(() => {}); });", "await page.getByRole('button', { name: 'open alert' }).click();", "await page.getByRole('link', { name: 'mabl' }).click();", "await page.getByRole('button', { name: 'dropdowns' }).click();", "await page.getByLabel('Dropdown select').locator('div').first().click();", "await page.getByLabel('george costanza').click();", "await page.getByRole('link', { name: 'mabl' }).click();" ] }