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

Make it possible to use page.keyboard.type('text') instead of page.ty… #179

Closed dolfje closed 1 year ago

dolfje commented 2 years ago

Description

The selectors are sometimes cryptic and could break with adaptations in the DOM layout. Thus I use a custom selector (see other pull request). But the couldn't find a proper selector to use with typing in a field. Thus I made it possible that no selector is used and the function page.keyboard.type('text') is used. When testing I first click on the label and then type. So the duplicate selector isn't needed. I created an option to use the page.keyboard.type(). It is still defaulted to the page.type() function.

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Internal testing

Checklist:

ianaya89 commented 1 year ago

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