Page.exposeFunction() method | Puppeteer (pptr.dev) Page.exposeFunction() method | PuppeteerThe method adds a function called name on the page's window object. When called, the function executes puppeteerFunction in node.js and returns a Promise which resolves to the return value of puppeteerFunction.pptr.devPuppeteer에서 exposeFunction을 사용하면, 페이지의 window 객체에 함수를 추가하며, Node에서 함수를 실행하고, 반환된 값을 페이지에..