Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

1- Playwright Execution using NodeJS API

https://github.com/asadzakir/playwright-execution-api

...

Code Block
{
  "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();"
  ]
}

...

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

...