How to make Puppeteer work in headless; true mode

Asked

Viewed 14 times

-2

I’m trying to get the innerText 3-element

page.$$('selector')

but it doesn’t work if I leave the headless: true

I’ve tried using

 page.evaluate(()=>{
    
       const elems = document.querySelectorAll('selector')
    
    })

But likewise, it doesn’t work in headless:true mode

I am using ppt V10.1.0

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.