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

Small test recorded, exception in puppeteer execution #17

Closed rccclr closed 6 years ago

rccclr commented 6 years ago

Hello What is the problem in execution? Many thanks

virtualbox_2018-08-27_11-49-36

tnolet commented 6 years ago

Hi @rccclr the element you want to click is not available in the page yet. This has to do with the asynchronicity of browser interaction and totally normal. You will have to add a page.waitForSelector clause before the page.click call. Puppeteer Recorder does not do that at this moment.

rccclr commented 6 years ago

Sorry @tnolet please help!

virtualbox_2018-08-27_21-23-20

tnolet commented 6 years ago

Hi @rccclr I think your issue is not related to Puppeteer Recorder, but more to using Puppeteer in general. I'm sorry I can't help you with that. I would recommend seeking help here:

  1. https://http://puppeteer.slack.com/ - the Slack community is quite helpful
  2. https://pptr.dev - the official docs

Also, when posting questions please provide the actual code so the issue can be reproduced. You are requesting people to now type over your code or for some reason from memory produce an answer. You will get more and quicker help when supplying a reproducible case.