Skip to content
#

Playwright

playwright logo

Playwright provides a set of APIs to automate Chromium, Firefox, and WebKit browsers. By using the Playwright API, you can write scripts to create new browser pages, navigate to URLs, and interact with elements on a page. Along with a test runner, Playwright can be used to automate user interactions to validate and test web applications.

Here are 257 public repositories matching this topic...

mockiavelli
lukaszfiszer
lukaszfiszer commented May 21, 2021

The current mock mechanism is "strict" regarding trailing slashes:

mockiavelli.mockGET('/example', {status: 200})
// GET /example/ => 404

This behaviour should be at least configurable to allow ignoring trailing slashes:

const mockiavelli = await Mockiavelli.setup(page, {ignoreTrailingSlashes: true});
mockiavelli.mockGET('/example', {status: 200})
// GET /example/ => 200

Created by Microsoft

Released January 31, 2020

Latest release 2 days ago

Repository
microsoft/playwright
Website
playwright.dev