This way we can send HTTP requests from the Node.js instead of UI interactions.
const cookies = await page.cookies()
cookies.forEach(
async cookie => {
await setCookie(
`${cookie.name}=${cookie.value}`,
'https://www.example.com'
)
}
)
const { request } = await got('https://www.example.com', { cookieJar })
@gandolfi974 please provide more context.