Playwright - How to test a website that requires google login

Viewed 58

We are currently developing a new website, that right now requires to login with work google account in order to access anything. I've tried setting extrahttpHeaders in playwright.config.ts - but it changes nothing. How should I approach it? The website is using cloudflare

1 Answers

There should be way through Oauth2. I did not it by myself but basically you send HTTP request to google API and they send you access token back. Watch this

Related