How to Execute PATCH Requests in Playwright
Last Updated On HOME Playwright can be used to get access to the REST API of the application. In this tutorial, I will go through the steps to execute the PATCH requests in Playwright. Table of Contents: System Requirement What is PATCH Request? A PATCH request is an HTTP method used in RESTful APIs to apply partial modifications to…
Mastering Snapshot Testing with Playwright
Last Updated On HOME Playwright’s snapshot assertions are an incredibly powerful tool. They ensure your app’s UI remains consistent across code changes. This applies to different browsers and devices. This allows developers to ensure that the UI remains consistent across changes and helps detect unintended changes. Table of Content System Requirement What is the use of…
Unlocking Playwright: Test Reports with Tags and Annotations
Last Updated On HOME Playwright supports tags and annotations that are displayed in the test report. You can add your own tags and annotations at any moment, but Playwright comes with a few built-in ones: Table Of Contents Below is the playwright.config.ts used in the project. playwright.config.ts Below are the tests mentioned in login_page.spec.ts login_page.spec.ts…
How to Execute PUT Requests in Playwright
Last Updated On HOME Playwright can be used to get access to the REST API of the application. In this tutorial, I will go through the steps to execute the PUT requests in Playwright. What is PUT Request? A PUT request is an HTTP method used to update a resource at a specified URL, or to create…
How to Execute POST Requests in Playwright
Last Updated On HOME Playwright can be used to get access to the REST API of the application. In this tutorial, I will go through the steps to execute the POST requests in Playwright. Table of Contents What is POST Request? A POST request is a type of HTTP request used to send data to a server…
How to Execute GET Requests in Playwright
Last Updated On HOME Playwright can be used to get access to the REST API of the application. There are instances when you might prefer to send requests directly from Node.js without the need to load a webpage or execute JavaScript within it. Here are a few scenarios where this approach can be particularly useful: Evaluating your…
How to Attach Screenshots in Playwright for Failed Tests
Last Updated On HOME Attaching screenshots to failed tests is a beneficial practice in testing, especially for browser automation testing. It helps in visualizing what went wrong and aids in debugging. Here’s how you can attach screenshots to failed tests using Playwright. Table of Contents 1. Update Playwright Test Configurations You can configure the playwright.config.js…
Automate Playwright Tests with Command-Line Options
Last Updated On HOME Command-line interfaces (CLI) are essential for automating tasks. Using CLI commands, you can integrate Playwright tests into Continuous Integration/Continuous Deployment (CI/CD) pipelines. This allows for automatic testing whenever code changes are made. This ensures quality and consistency. Running tests via the command line can be more resource-efficient, as it minimizes overhead…
How to Run Playwright Tests in UI Mode
Last Updated On HOME By default, Playwright runs in headless mode, but you can switch to UI mode by configuring the browser options. Why do we need to run the tests in UI mode? UI mode allows testers to see each step of their script being executed visually, which is incredibly useful for debugging. You…
How to Specify Browsers in Playwright Tests
Last Updated On HOME In Playwright, you can specify which browser to use when running your tests. This can be done through configuration settings. You can also do it directly via command-line options. Playwright supports multiple browsers including Chromium, Firefox, and WebKit. Here are the steps to run tests using a specific browser: 1. Configuration in…
Something went wrong. Please refresh the page and/or try again.
Follow My Blog
Get new content delivered directly to your inbox.