Skip to content
Advertisement

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 axios, so I beg you to be patient; Thanks for

How To Get The URL After Redirecting from Current Page To Another Using Puppeteer?

I’m Aadarshvelu! Recently Started Testing My WebApp Code Using Jest With Puppeteer. So I Have Page Which All Credentials Have Been Filled With Puppeteer.But When SummitButton(‘signBtn’) Clicked POST process Starts Is There Any Test That Process POST Request?.. Or How Do I Know Test Has Been Completely Finished? Or How to Get The Redirect Page URL While Test Running? This

Puppeteer throws “UnhandledPromiseRejectionWarning: TimeoutError: Navigation Timeout Exceeded” sometimes

I’m testing Headless Chrome with Puppeteer, so I’ve reading docs and running this code*: (*Snippet from Docs-Usage). I changed “example.com” because works fine and trying with other sites, but with “github.com” script returns an timeout exception in the await page.goto() line: If I go to github.com with my regular browser, connects in normal timing, so my internet connection is not

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 / await.

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

Advertisement