jeudi 1 juillet 2021

puppeteer wait for keyboared.type to finish typing

Hi I am using puppeteer for scraping website. I only have simple problem with the following code

await page.keyboard.type(data)

await page.click(buttonSelector)

the first line types really long text and i want the second line which is the submit button click to wait until typing is finished




Aucun commentaire:

Enregistrer un commentaire