Skip to content

Tag: puppeteer

How to Inject Axios in Puppeteer

I want to inject axios in puppeteer in order to open a browser session, but sending requests and receiving responses through axios: So the question is, is it possible? Here’s my attempt, but it is not working since axios doesn’t intercepts the website responses I’m moving my first steps in a…

page.evaluate wait for ajax to finish loading

I am developing a puppeteer script in nodejs. It has an ajax to a load more button in that script. The thing is that, the script doesn’t wait for the ajax to finish loading thus leaving the page.evaluate to finish the script without waiting for the ajax to be done. I am a bit confused on new promise / a…

login into gmail fails for unknown reason

I am trying to login into my gmail with puppeteer to lower the risk of recaptcha here is my code but i always end up with this message I even tried to just open the login window with puppeteer and fill the login form manually myself, but even that failed. Am I missing something ? When I look into console