Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

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();"
  ]
}
image-20240821-114538.png

2- Local Execution with in GTP Recorder using the playwright CRX library

image-20240821-120411.png

  • No labels