to function puppeteer.connect(options): 6. Wait for the necessary page: 7. Return the instance of the target page: https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#puppeteerconnectoptions https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#browserwaitfortargetpredicate-options https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#targetpage