I am currently attempting to automate the login process for Shopify using Playwright (Python). However, I am unable to successfully log in when using the browser instance provided by Playwright.
The login process works normally when performed manually on a regular browser (e.g., Chrome), but fails when executed through Playwright automation.
Shopify’s login flows include bot detection which could potentially block automated browsers like Playwright from authenticating successfully. That might be what you’re running into here.
That said, automated browser testing against Shopify’s login isn’t something we officially support or provide tooling for. Depending on what you’re trying to test though, there might be better approaches available. If you’re testing storefront changes, we have built-in
simulation tooling (SimGym) in the Online Store Editor that lets you test against simulated buyer behavior. For app testing, Shopify CLI handles auth for you with shopify app dev.
Could you share a bit more about what exactly you’re trying to test and what login flow you’re hitting? That would help me point you in the right direction.