Shopify Login Automation Using Playwright – Password Page Not Loading After Email Submission

Hi everyone,

I am trying to automate Shopify admin login using Playwright with TypeScript.

I can open the Shopify admin login page, enter my email address, and click the “Continue with email” button. However, the login flow does not proceed as expected, and I am unable to complete the login successfully.

I also noticed hCaptcha-related errors in the browser console.

I have tried automating the login flow, but the issue persists.

My questions:

  1. Is direct Shopify admin login automation supported with Playwright?

  2. Is it recommended to log in manually once and reuse the saved authentication state for subsequent UI tests?

  3. What is the recommended approach for automating Shopify app UI tests on a development store?

I would appreciate any suggestions or guidance. Thank you!

Hey @Deepti_jain,

Automated testing against Shopify’s login isn’t officially supported. Playwright itself isn’t blocked by name, but the login flow’s bot protection can interfere with automated browsers, as discussed in this related thread.

If you can complete login manually in a Playwright browser, you can capture that session and reuse it for your app UI tests through storageState. Playwright’s guide to preserving authenticated state explains how to save and reload it. This avoids repeating login for every test, but sessions can expire or require verification again, so it doesn’t guarantee reliable unattended CI.

To narrow down your current failure, does manual login work in a normal browser? Could you also share the exact hCaptcha error and whether you’re running Playwright locally with a visible browser, in headless mode, or in CI?