Exception Handling in Playwright
Exception Handling in Playwright import { test, expect,Page, Browser, Locator } from ‘@playwright/test’; import { webkit, chromium, firefox } from ‘playwright’; test.describe(‘Exception handling in Playwright’, () => { Read more »
Retry Mechanism in Playwright
Retry Mechanism in Playwright Retries in Playwright help reduce flaky test failures caused by temporary issues such as network delays, slow page loads, or timing problems. If a test fails, Read more »
Environment Variables in Playwright
Environment Variables in Playwright Why use Environment Variables? ✅ Avoid hardcoding sensitive information ✅ Run tests against different environments (Dev, QA, UAT, Prod) ✅ Improve security ✅ Easier CI/CD integration Read more »
TraceViewer in Playwright
Trace Viewer in Playwright What is Trace Viewer? Trace Viewer is one of Playwright’s most powerful debugging tools. It records everything that happens during a test execution and lets you Read more »
Codegen in Playwright
Codegen in Playwright Playwright Codegen is a built-in tool that records your interactions with a web application and automatically generates Playwright test scripts. It is one of the fastest ways Read more »
TestInfo in Playwright
Getting TestInfo in Playwright Read more »
Paralell Execution in Playwright
Parallel Execution in Playwright Parallel Execution is one of Playwright’s most powerful features. It allows multiple tests to run simultaneously across different worker processes, significantly reducing the total execution time Read more »
Playwright Reports
Playwright Reports Playwright provides powerful reporting features that help you analyze test execution, identify failures, debug issues, and share results with your team. Why are Playwright Reports Important? ✅ View Read more »
API automation in Playwright: GET call
import {test, Page, Locator, expect,FileChooser } from ‘@playwright/test’; //API automation : Get call test(“API Get call“, async ({ request }) => { const response = await request.get(“https://petstore.swagger.io/v2/pet/findByStatus?status=available”); expect(response.ok()).toBeTruthy(); Read more »
API automation in Playwright: POST method
//API automation in Playwright: POST method test(‘POST API Request’, async ({ request }) => { const response = await request.post( ‘https://petstore.swagger.io/v2/pet’, { Read more »
