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 optional page.waitForSelector() line before clicks #18

Closed tnolet closed 6 years ago

tnolet commented 6 years ago

It is a very common scenario to have to wait for an element before you can click it. It should be possible to add a waitForSelector before click. i.e.

await page.waitForSelector('a.link')
await page.click('a.link')

This feature should be toggleable in the options pane.