Skip to content
#

playwright

Here are 230 public repositories matching this topic...

headless-recorder
ric2b
ric2b commented Aug 7, 2020

Trying to record typing into a date field doesn't work for me, it just types on the yyyy section of the date and ends up completely invalid.

What I've had work really well was replacing await page.type(selector, '2020-08-07'); with:

await page.focus(selector);
await page.keyboard.type('20200807');

Would it be within scope of the extension to recognize date inputs

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

Improve this page

Add a description, image, and links to the playwright topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the playwright topic, visit your repo's landing page and select "manage topics."

Learn more