Home/Q&A/Can I run Playwright and browser automation on a remote Mac mini?

Can I run Playwright and browser automation on a remote Mac mini?

Updated · airankrush

Direct answer

Yes. Both headless and headed modes work, and in headed mode the browser window appears right in the remote desktop. How the target website treats automated traffic is not something we can guarantee.

Basis

  • Playwright downloads its own managed Chromium, Firefox and WebKit with npx playwright install, into the user directory. Details are in the official docs.
  • On macOS you can run tests against the WebKit engine. It is not the same program as release Safari, but it is a useful reference for catching rendering issues in Apple's browsers.
  • These tools drive the browser through a debugging protocol and do not simulate system-level mouse and keyboard input, so there is no need to grant Accessibility or Screen Recording under Privacy & Security.
  • After you disconnect from the remote desktop, a headed browser keeps running as long as the user stays logged in.

Information as of .

Boundaries: when the answer is different

Testing your own site and running end-to-end regression are a good fit for this machine. Using it to scrape other people's websites in bulk means reading their terms first: unauthorized scanning, harassing bulk messaging and circumventing third-party platforms' security mechanisms are all prohibited uses with us, and violations can get the machine suspended. Consider the exit as well: the machine uses US residential broadband and the public exit may be shared with other machines, so which address the target site sees, and whether it shows a verification challenge, is beyond our control. Browser instances use a lot of memory; set the parallel count according to the machine's configuration.

How to do it

  1. Run npm init playwright@latest in the project and follow the prompts to generate the config.
  2. Run npx playwright install to download the browsers.
  3. Start with npx playwright test --headed and watch the actual run once in the remote desktop.
  4. Once it is stable, switch back to headless, run it inside tmux and write the report to a file.
  5. Have Claude Code read the reports and screenshots of failed cases to fix them, rather than staring at the screen yourself.

Use case

This question belongs to the use case: Remote Mac mini for heavy Claude Code use: an always-on workstation, not account insurance

Other questions in the same use case:

Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support

Back to home · All Q&A