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

Add options to wait for network after a click #180

Closed dolfje closed 1 year ago

dolfje commented 2 years ago

Description

With a React application, a click doesn't always change the navigation. But in most cases will load some extra data. So add an option to wait after all network activity is done when clicking.

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Internal testing

Checklist:

ianaya89 commented 2 years ago

@dolfje is this something that will work the same way in playwright? If not, we need to consider it only as a valid option for puppeteer.

ianaya89 commented 2 years ago

@dolfje reminder 👆

dolfje commented 2 years ago

I don't know playwright, but can't find it in their docs. So probably not.

RexSkz commented 2 years ago

Hi all, in playwright we can use await page.waitForLoadState('networkidle') instead :)

Maybe this can be a reference (self-test only, not ready for merge): https://github.com/RexSkz/headless-recorder/pull/4/files

ianaya89 commented 1 year ago

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