checkly / headless-recorder

Chrome extension that records your browser interactions and generates a Playwright or Puppeteer script.
https://checklyhq.com/headless-recorder
MIT License
15.03k stars 722 forks source link

Typing into date inputs types only on the yyyy section. #100

Closed ric2b closed 1 year ago

ric2b commented 4 years ago

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 and use this alternative instead?

tnolet commented 4 years ago

@ric2b thanks for mentioning. I would gladly take a PR that implements this.

noahsnowc commented 3 years ago

Just checking, but since its been several months, is this still open?

maxigimenez commented 3 years ago

Hi @noahsnowc, yes, this is still an open issue.

ianaya89 commented 3 years ago

@ric2b @noahsnowc Hi, we are trying to get back on this. I am testing this issue and could not reproduce it. When I click the input and I type (or manually select a date), the value is properly generated.

Kapture 2021-01-11 at 16 01 26

Am I missing something? If so, can you provide more information/details on this?

ric2b commented 3 years ago

@ianaya89 The recording looks ok, it does capture the whole date, but when I execute the resulting script only the yyyy section is modified, at least on the test form I'm using which is this Google Form.

The alternative I provided above works but it requires manually editing the resulting script. I'm not sure what the best solution would be, not sure if this is an issue with the puppeteer API itself or not.

edit: Also tried these, which don't even start typing on the data input:

p-o-p-oCat commented 3 years ago

looks great though My chrome just went corrupted qwq

ianaya89 commented 1 year ago

https://github.com/checkly/headless-recorder/issues/232