Browser Testing with Playwright
Claude can drive a real browser, write Playwright tests, and repair the tests that break. This page compares the three ways to connect Claude to a browser, sets up Playwright MCP and the Playwright Test Agents, and walks through one loop for a tester: explore, plan, generate, run, and heal, with test accounts and no production data.
8 min read8 মিনিটে পড়া যায় · 7 sections7টি সেকশন · 7 sources7টি সোর্স · updated Nov 2026আপডেট: Nov 2026
Explore, plan, generate, run, healখোঁজা, প্ল্যান, তৈরি, চালানো, সারানো
Go round the five-step loop and see a broken locator healed.পাঁচ ধাপের লুপ ঘুরে দেখুন একটা ভাঙা লোকেটর কীভাবে সারে।
You’ll learnআপনি শিখবেন
- The loop: explore, plan, generate, run, healলুপ: খোঁজা, প্ল্যান, তৈরি, চালানো, সারানো
- What the planner and the generator writeপ্ল্যানার আর জেনারেটর কী লেখে
- The healer fixes locators and skips real bugsহিলার লোকেটর ঠিক করে, আসল বাগ স্কিপ করে
- Why you review every diff and file bugsকেন প্রতিটা diff পড়বেন আর বাগ ফাইল করবেন
Three ways to put Claude in a browser
| Tool | What it is | Use it for |
|---|---|---|
| Playwright MCP | An MCP server that lets Claude work with web pages through structured accessibility snapshots, without screenshots. Source 1সোর্স 1 | Exploring an app, checking a flow, and finding locators |
| Playwright Test Agents | Three agent definitions, planner, generator, and healer, that guide an LLM through building a Playwright test. Source 2সোর্স 2 | Test plans and test code that you keep in the repository |
| Claude in Chrome | A connection from Claude Code to the Claude in Chrome extension in your own browser. Source 3সোর্স 3 | Interactive debugging in your own browser session |
The tutorial's rule of thumb
If the result must be test code that runs again in CI, use Playwright: MCP to explore, and the Test Agents to plan, generate, and heal. Use Claude in Chrome to explore and debug by hand. Claude in Chrome does not work with the API-key or setup-token sign-in that CI jobs use. Source 3সোর্স 3
সহজ English
You can connect Claude to a browser in three ways:
- Playwright MCP is an MCP server. It lets Claude work with web pages through structured accessibility snapshots, not screenshots. Source 1সোর্স 1 Use it to explore an app, check a flow, and find locators.
- The Playwright Test Agents are three agent definitions: planner, generator, and healer. They guide an LLM while it builds a Playwright test. Source 2সোর্স 2 Use them for test plans and test code that you keep in the repository.
- Claude in Chrome connects Claude Code to the Claude in Chrome extension in your own browser. Source 3সোর্স 3 Use it for interactive debugging in your own browser session.
The tutorial gives this rule: if you need test code that runs again in CI, use Playwright. Use MCP to explore, and use the Test Agents to plan, generate, and heal. Use Claude in Chrome to explore and debug by hand. Claude in Chrome does not work with the API-key or setup-token sign-in that CI jobs use. Source 3সোর্স 3
বাংলা ব্যাখ্যা
Claude-কে browser-এ যুক্ত করার তিনটি উপায় আছে:
- Playwright MCP একটি MCP server। এটি screenshot ছাড়াই, structured accessibility snapshot-এর মাধ্যমে Claude-কে web page-এ কাজ করতে দেয়। Source 1সোর্স 1 একটি app explore করা, একটি flow যাচাই করা এবং locator খুঁজে বের করার জন্য এটি ব্যবহার করুন।
- Playwright Test Agents হলো তিনটি agent definition: planner, generator এবং healer। এগুলো একটি LLM-কে Playwright test তৈরির পথে গাইড করে। Source 2সোর্স 2 যে test plan আর test code আপনি repository-তে রাখবেন, তার জন্য এগুলো ব্যবহার করুন।
- Claude in Chrome হলো Claude Code থেকে আপনার নিজের browser-এর Claude in Chrome extension-এ একটি connection। Source 3সোর্স 3 নিজের browser session-এ interactive debugging-এর জন্য এটি ব্যবহার করুন।
Tutorial-এর নিয়ম: ফলাফল যদি এমন test code হতে হয় যা CI-তে আবার চলবে, তাহলে Playwright ব্যবহার করুন। Explore করতে MCP, আর plan, generate ও heal করতে Test Agents। হাতে explore ও debug করতে Claude in Chrome ব্যবহার করুন। CI job যে API-key বা setup-token sign-in ব্যবহার করে, Claude in Chrome তার সাথে কাজ করে না। Source 3সোর্স 3
Playwright MCP
Add the server
The Playwright MCP README gives this command for Claude Code: Source 1সোর্স 1
claude mcp add playwright npx @playwright/mcp@latest- Playwright MCP needs Node.js 20 or newer. Source 4সোর্স 4 Source 1সোর্স 1
- To pass options to the server, put
--before the server command. Everything after--goes to the server unchanged. Source 5সোর্স 5 --scope projectstores the server in.mcp.json, so the whole team gets it. Source 5সোর্স 5 The MCP Servers page explains scopes and approval.
Example: add the server for one tester, headless, with a profile that lives only in memory.
claude mcp add --transport stdio playwright -- npx @playwright/mcp@latest --headless --isolatedSnapshots, not screenshots
Playwright MCP uses Playwright's accessibility tree, not pixel-based input, so no vision model is needed. Source 1সোর্স 1 The README says to use browser_snapshot for actions by default. browser_take_screenshot takes a picture of the page. With the vision capability enabled, you can use screenshot coordinates with the coordinate-based mouse tools. Source 1সোর্স 1
--caps turns on more capabilities. The README's options table lists vision, pdf, and devtools. Its tools list also has groups that you turn on with --caps=config, --caps=network, --caps=storage, and --caps=testing. Source 1সোর্স 1 --caps=vision adds coordinate-based mouse tools, such as browser_mouse_click_xy. Source 1সোর্স 1 Use it only when the snapshot cannot reach an element.
সহজ English
To add the server to Claude Code, use the command from the README: claude mcp add playwright npx @playwright/mcp@latest. Source 1সোর্স 1 The Playwright docs ask for Node.js 20 or newer. Source 4সোর্স 4 The README says 18 or newer. Source 1সোর্স 1 Use Node.js 20 or newer to meet both. To give options to the server, put -- before the server command. --scope project stores the server in .mcp.json, so the whole team gets it. Source 5সোর্স 5
Playwright MCP uses the accessibility tree, so it needs no vision model. Claude acts on the snapshot from browser_snapshot by default, not on a screenshot from browser_take_screenshot. Source 1সোর্স 1 --caps=vision adds mouse tools that use coordinates. Use it only when the snapshot cannot reach an element.
বাংলা ব্যাখ্যা
Claude Code-এ server যোগ করতে README এই command দেয়: claude mcp add playwright npx @playwright/mcp@latest। Source 1সোর্স 1 Playwright MCP-এর জন্য Node.js 20 বা নতুন version লাগে। Source 4সোর্স 4 Source 1সোর্স 1 Server-কে option দিতে server command-এর আগে -- দিন। --scope project server-টিকে .mcp.json-এ রাখে, তাই পুরো team এটি পায়। Source 5সোর্স 5
Playwright MCP pixel-ভিত্তিক input নয়, Playwright-এর accessibility tree ব্যবহার করে, তাই কোনো vision model লাগে না। Claude ডিফল্টভাবে browser_snapshot-এর snapshot-এর ওপর কাজ করে, browser_take_screenshot-এর screenshot-এর ওপর নয়। Source 1সোর্স 1 --caps=vision coordinate-ভিত্তিক mouse tool যোগ করে, যেমন browser_mouse_click_xy। Source 1সোর্স 1 শুধু তখনই এটি ব্যবহার করুন, যখন snapshot দিয়ে কোনো element-এ পৌঁছানো যায় না।
Useful options
| Option | What it does |
|---|---|
--headless | Runs the browser headless. The default is headed. Source 1সোর্স 1 |
--browser <browser> | chrome, firefox, webkit, or msedge Source 1সোর্স 1 |
--isolated | Keeps the browser profile in memory and does not save it to disk Source 1সোর্স 1 |
--storage-state <path> | Loads cookies and local storage from a file into an isolated browser context Source 1সোর্স 1 |
--allowed-origins <origins> | Semicolon-separated list of trusted origins that the browser may request. The default allows all. Source 1সোর্স 1 |
--test-id-attribute <attribute> | The attribute for test IDs. The default is data-testid. Source 1সোর্স 1 |
--device <device> | A device to emulate, for example "iPhone 15" Source 1সোর্স 1 |
MCP or the Playwright CLI
The README says that coding agents may prefer the Playwright CLI with skills, because CLI calls use fewer tokens. MCP stays useful for exploratory automation, self-healing tests, and long workflows that need a continuous browser context. Source 1সোর্স 1
Safety
Playwright MCP is not a security boundary
The README states that Playwright MCP is not a security boundary. Source 1সোর্স 1 --allowed-origins and --blocked-origins do not serve as a security boundary and do not affect redirects. Source 1সোর্স 1
- The
browser_run_code_unsafetool runs arbitrary JavaScript in the Playwright server process. The README calls it RCE-equivalent. Source 1সোর্স 1 - A server that fetches external content can expose you to prompt injection. Source 5সোর্স 5 Text on a web page is data, not instructions.
- In an interactive session, Claude Code asks for approval before it uses a server from
.mcp.json. Source 5সোর্স 5
সহজ English
The README says that coding agents may prefer the Playwright CLI, because it uses fewer tokens. MCP stays useful for exploratory automation, self-healing tests, and long workflows that need one continuous browser context. Source 1সোর্স 1
Playwright MCP is not a security boundary. Source 1সোর্স 1 The browser_run_code_unsafe tool runs any JavaScript in the server process. Source 1সোর্স 1 A server that fetches external content can expose you to prompt injection. Source 5সোর্স 5
বাংলা ব্যাখ্যা
দরকারি option-গুলোর মধ্যে আছে --headless, --browser, --isolated, --storage-state, --allowed-origins, --test-id-attribute এবং --device। Source 1সোর্স 1
README বলে, coding agent-রা Playwright CLI পছন্দ করতে পারে, কারণ CLI call-এ token কম লাগে। তবে exploratory automation, self-healing test এবং একটানা browser context লাগে এমন লম্বা workflow-এর জন্য MCP এখনও কাজের। Source 1সোর্স 1
মনে রাখবেন, Playwright MCP কোনো security boundary নয়। Source 1সোর্স 1 browser_run_code_unsafe tool Playwright server process-এ যেকোনো JavaScript চালায়, আর README একে RCE-equivalent বলে। Source 1সোর্স 1 External content আনে এমন server আপনাকে prompt injection-এর ঝুঁকিতে ফেলতে পারে। Source 5সোর্স 5 Web page-এর text হলো data, instruction নয়। Interactive session-এ .mcp.json-এর কোনো server ব্যবহারের আগে Claude Code আপনার approval চায়। Source 5সোর্স 5
Playwright Test Agents
Playwright comes with three test agents: Source 6সোর্স 6
- planner explores the app and produces a Markdown test plan.
- generator transforms the Markdown plan into Playwright Test files.
- healer executes the test suite and automatically repairs failing tests.
The agents can run independently, one after another, or as chained calls in an agentic loop. Source 6সোর্স 6 Playwright v1.56 introduced them. Source 2সোর্স 2
Set them up for Claude Code
npx playwright init-agents --loop=claudeRun the command again whenever you update Playwright, so the agents get the new tools and instructions. Source 6সোর্স 6 Other loops are vscode, codex, and opencode. Source 6সোর্স 6
For the Claude loop, the Playwright source writes these files: Source 7সোর্স 7
- One agent file for each agent in
.claude/agents/. .mcp.jsonwith one server,playwright-test, which runsnpx playwright run-test-mcp-server. On Windows, the command iscmd /c npx playwright run-test-mcp-server. Source 7সোর্স 7specs/README.md, if thespecs/folder does not exist.- A default seed test, if the project has no seed test.
init-agents replaces .mcp.json
The Claude loop writes a new .mcp.json that contains only the playwright-test server. Source 7সোর্স 7 If your project already has a .mcp.json, commit it first. After the command, use git diff to add your other servers back.
Planner, generator, and healer
| Agent | Input | Output |
|---|---|---|
| Planner | A clear request, a seed test that sets up the environment, and optionally a Product Requirement Document (PRD) Source 6সোর্স 6 | A Markdown test plan in specs/, for example specs/basic-operations.md Source 6সোর্স 6 |
| Generator | A Markdown plan from specs/ Source 6সোর্স 6 | A test suite under tests/. It verifies selectors and assertions live while it performs the scenarios. Source 6সোর্স 6 |
| Healer | The name of a failing test Source 6সোর্স 6 | A passing test, or a skipped test if the healer believes that the functionality is broken Source 6সোর্স 6 |
- The seed test,
tests/seed.spec.tsin the docs, gives a readypagecontext. The planner runs it to do all setup, and uses it as the example for every generated test. Source 6সোর্স 6 - Generated tests may include initial errors. The healer can fix them. Source 6সোর্স 6
- The healer replays the failing steps, inspects the current UI for equivalent elements or flows, suggests a patch, and re-runs the test until it passes or guardrails stop the loop. Source 6সোর্স 6
Common mistake: trusting a healed test
A skipped test can mean a real product bug. A patched locator can hide a changed requirement. Review every diff from the healer before you merge it. The Test Design with Claude page has more on keeping the healer honest.
সহজ English
Playwright has three test agents: Source 6সোর্স 6
- The planner explores the app and writes a test plan in Markdown.
- The generator turns the plan into Playwright Test files.
- The healer runs the test suite and repairs the tests that fail.
They can run alone, one after another, or as chained calls in an agentic loop. Source 6সোর্স 6 Playwright v1.56 introduced them. Source 2সোর্স 2
For Claude Code, run npx playwright init-agents --loop=claude. Run it again each time you update Playwright. Source 6সোর্স 6 It writes one agent file for each agent in .claude/agents/, and a new .mcp.json with only the playwright-test server. Source 7সোর্স 7 If you already have a .mcp.json, commit it first. Then use git diff to add your other servers back.
The planner needs a clear request and a seed test, such as tests/seed.spec.ts. Source 6সোর্স 6 The generator writes a test suite under tests/. The healer gets the name of a failing test. It returns a passing test, or skips the test if it believes that the functionality is broken. Source 6সোর্স 6
A skipped test can mean a real product bug. Review every diff from the healer before you merge it.
বাংলা ব্যাখ্যা
Playwright-এর সাথে তিনটি test agent আসে: Source 6সোর্স 6
- planner app explore করে একটি Markdown test plan বানায়।
- generator সেই Markdown plan-কে Playwright Test file-এ রূপান্তর করে।
- healer test suite চালায় এবং fail করা test নিজে থেকে ঠিক করে।
এগুলো আলাদাভাবে, একটির পর একটি, অথবা একটি agentic loop-এ chained call হিসেবে চলতে পারে। Source 6সোর্স 6 Playwright v1.56-এ এগুলো প্রথম আসে। Source 2সোর্স 2
Claude Code-এর জন্য set up করতে npx playwright init-agents --loop=claude চালান। Playwright update করলে প্রতিবার command-টি আবার চালান। Source 6সোর্স 6 Claude loop-এর জন্য এটি .claude/agents/-এ প্রতিটি agent-এর একটি file লেখে। এটি একটি নতুন .mcp.json-ও লেখে, যাতে শুধু playwright-test server থাকে। Source 7সোর্স 7 আপনার project-এ আগে থেকে .mcp.json থাকলে আগে সেটি commit করুন। তারপর git diff দেখে অন্য server-গুলো আবার যোগ করুন।
Planner-কে একটি পরিষ্কার request আর একটি seed test দিন (docs-এ tests/seed.spec.ts)। Seed test সব setup করে। Source 6সোর্স 6 Generator specs/-এর plan থেকে tests/-এর নিচে একটি test suite বানায়। Healer একটি fail করা test-এর নাম নেয়। এটি একটি passing test ফেরত দেয়, অথবা functionality ভাঙা বলে মনে করলে test-টি skip করে। Source 6সোর্স 6
সতর্ক থাকুন: skip করা test একটি আসল product bug হতে পারে। Merge করার আগে healer-এর প্রতিটি diff review করুন।
Claude in Chrome
Start Claude Code with claude --chrome to connect it to the Claude in Chrome extension. Source 3সোর্স 3 Claude can then test a local web app, read console errors and DOM state, and record browser actions as a GIF. Source 3সোর্স 3
- You need the extension at version 1.0.36 or later, and a direct Anthropic plan: Pro, Max, Ultra, Team, or Enterprise. Source 3সোর্স 3
- It works with Google Chrome and Microsoft Edge. It is not supported in WSL. Source 3সোর্স 3
- You must sign in with
/login. With an API key or aclaude setup-tokentoken, Claude Code keeps Chrome integration off, even with--chrome. Source 3সোর্স 3 So it is not for CI. - Claude shares your browser's login state, so it can access any site that you are signed in to. It pauses on a login page or a CAPTCHA and asks you to handle it. Source 3সোর্স 3
- To see the browser tools, run
/mcp, selectclaude-in-chrome, then select View tools. Source 3সোর্স 3
A prompt from the docs: Source 3সোর্স 3
I just updated the login form validation. Can you open localhost:3000,
try submitting the form with invalid data, and check if the error
messages appear correctly?সহজ English
Start Claude Code with claude --chrome to connect it to the Claude in Chrome extension. Source 3সোর্স 3 Then Claude can test a local web app, read console errors and DOM state, and record browser actions as a GIF. Source 3সোর্স 3
Know these limits: Source 3সোর্স 3
- You need the extension at version 1.0.36 or later, and a direct Anthropic plan: Pro, Max, Ultra, Team, or Enterprise.
- It works with Google Chrome and Microsoft Edge. It is not supported in WSL.
- You must sign in with
/login. With an API key or aclaude setup-tokentoken, Chrome integration stays off, even with--chrome. So you cannot use it in CI. - Claude shares the login state of your browser, so it can access each site that you are signed in to. On a login page or a CAPTCHA, it stops and asks you to handle it.
- To see the browser tools, run
/mcp, selectclaude-in-chrome, then select View tools.
The docs give an example prompt: open localhost:3000, submit the login form with invalid data, and check that the error messages appear correctly. Source 3সোর্স 3
বাংলা ব্যাখ্যা
Claude in Chrome extension-এর সাথে যুক্ত করতে claude --chrome দিয়ে Claude Code চালু করুন। Source 3সোর্স 3 তখন Claude একটি local web app test করতে, console error ও DOM state পড়তে এবং browser action GIF হিসেবে record করতে পারে। Source 3সোর্স 3
যা লাগবে ও যা মনে রাখবেন: Source 3সোর্স 3
- Extension-এর version 1.0.36 বা তার পরের, এবং একটি direct Anthropic plan: Pro, Max, Ultra, Team অথবা Enterprise।
- এটি Google Chrome ও Microsoft Edge-এ চলে। WSL-এ এটি support করে না।
/loginদিয়ে sign in করতে হবে। API key বাclaude setup-tokentoken দিয়ে চালালে--chromeদিলেও Claude Code Chrome integration বন্ধ রাখে। তাই এটি CI-এর জন্য নয়।- Claude আপনার browser-এর login state শেয়ার করে, তাই আপনি যে site-এ sign in করা আছেন, সেখানে এটি ঢুকতে পারে। Login page বা CAPTCHA এলে এটি থেমে আপনাকে সেটি সামলাতে বলে।
- Browser tool দেখতে
/mcpচালান,claude-in-chromeবাছুন, তারপর View tools বাছুন।
Docs-এর একটি উদাহরণ prompt: localhost:3000 খুলে ভুল data দিয়ে login form submit করা, আর error message ঠিকমতো আসে কি না দেখা। Source 3সোর্স 3
Workflow: explore, plan, generate, run, heal
Example
The steps and prompts below are the tutorial's workflow. Each step uses a tool or agent that this page describes above.
Set up in the correct order. init-agents --loop=claude replaces .mcp.json. Source 7সোর্স 7 A server at local scope (--scope local, the default) is stored in ~/.claude.json, not in .mcp.json. Source 5সোর্স 5 So add the playwright server at local scope, or add it again after you run init-agents.
-
Explore. With Playwright MCP, ask Claude to open the staging app as a test user and describe a flow.
Open https://staging.example.com, sign in as the QA test user, and describe the steps of the checkout flow. List each form field with its label and test ID. Do not submit an order. -
Plan. Ask the planner for a plan. Give it the seed test and the acceptance criteria, for example from a Jira ticket through the Jira MCP server. Read the plan in
specs/and correct it before you go on.Use the planner to generate a plan for guest checkout. Use tests/seed.spec.ts. The acceptance criteria are in specs/checkout-criteria.md. Include boundary values for the quantity field. -
Generate. Ask the generator to turn the reviewed plan into tests under
tests/. -
Run. Run the new tests the way your project runs Playwright tests, locally and then in CI. The Headless & CI page shows how Claude can triage the failures in a pipeline.
-
Heal. Give the healer the name of each failing test. Review its diff. If it skips a test, find out whether the product is broken, and file a bug if it is.
Keep the plan, the tests, and the healer's changes in the same pull request, so a reviewer sees why each test exists.
See it in practice
Load and Browser Automation shows a Playwright suite with one saved session per role, next to a k6 load test.
সহজ English
This is the tutorial's own workflow.
Set up in the correct order. init-agents --loop=claude replaces .mcp.json. Source 7সোর্স 7 A server at local scope (--scope local, the default) is stored in ~/.claude.json, not in .mcp.json. Source 5সোর্স 5 So add the playwright server at local scope, or add it again after init-agents.
- Explore. With Playwright MCP, ask Claude to open the staging app as a test user and describe a flow.
- Plan. Give the planner the seed test and the acceptance criteria. Read the plan in
specs/and correct it before you continue. - Generate. Ask the generator to turn the reviewed plan into tests under
tests/. - Run. Run the tests the way your project runs Playwright tests: first locally, then in CI.
- Heal. Give the healer the name of each failing test. Review its diff. If it skips a test, find out if the product is broken. If it is, file a bug.
Keep the plan, the tests, and the healer's changes in the same pull request. Then a reviewer sees why each test exists.
বাংলা ব্যাখ্যা
এই workflow tutorial-এর নিজের। প্রতিটি ধাপে এই পেজে বলা একটি tool বা agent ব্যবহার হয়।
প্রথমে সঠিক ক্রমে set up করুন। init-agents --loop=claude .mcp.json-কে বদলে দেয়। Source 7সোর্স 7 Local scope-এর (--scope local, default) server .mcp.json-এ নয়, ~/.claude.json-এ থাকে। Source 5সোর্স 5 তাই playwright server local scope-এ যোগ করুন, অথবা init-agents চালানোর পরে আবার যোগ করুন।
- Explore: Playwright MCP দিয়ে Claude-কে test user হিসেবে staging app খুলে একটি flow বর্ণনা করতে বলুন।
- Plan: Planner-কে seed test আর acceptance criteria দিন, যেমন Jira MCP server দিয়ে একটি Jira ticket থেকে।
specs/-এর plan পড়ুন এবং এগোনোর আগে ঠিক করুন। - Generate: Review করা plan থেকে
tests/-এর নিচে test বানাতে generator-কে বলুন। - Run: আপনার project যেভাবে Playwright test চালায়, সেভাবে নতুন test চালান: প্রথমে local-এ, তারপর CI-তে।
- Heal: প্রতিটি fail করা test-এর নাম healer-কে দিন এবং তার diff review করুন। কোনো test skip করলে product ভাঙা কি না খুঁজে দেখুন। ভাঙা হলে bug file করুন।
Plan, test আর healer-এর পরিবর্তন একই pull request-এ রাখুন, যাতে reviewer বোঝেন প্রতিটি test কেন আছে।
Keep test data safe
- Use test accounts and a non-production environment. Never point the browser at production data, because page content goes into Claude's context.
- Sign in once as the test user and save the session to a file. Source 4সোর্স 4 Load it with
--isolatedand--storage-state. Source 1সোর্স 1 - Limit the browser to your test origins with
--allowed-origins. Remember that it is a guardrail, not a security boundary. Source 1সোর্স 1 --secrets <path>loads secrets from a dotenv file. Playwright MCP replaces matching plain text in tool responses with them. The README calls this a convenience, not a security feature. Source 1সোর্স 1- With Claude in Chrome, Claude uses the login state of your browser. Source 3সোর্স 3 Sign in only with test accounts in the browser that Claude uses.
সহজ English
- Use test accounts and a non-production environment. Page content goes into Claude's context, so never point the browser at production data.
- Sign in one time as the test user and save the session to a file. Source 4সোর্স 4 Load it with
--isolatedand--storage-state. Source 1সোর্স 1 - Use
--allowed-originsto limit the browser to your test origins. This is a guardrail, not a security boundary. Source 1সোর্স 1 --secrets <path>loads secrets from a dotenv file. Playwright MCP replaces matching plain text in tool responses with them. The README calls this a convenience, not a security feature. Source 1সোর্স 1- With Claude in Chrome, Claude uses the login state of your browser. Source 3সোর্স 3 In the browser that Claude uses, sign in only with test accounts.
বাংলা ব্যাখ্যা
- Test account আর non-production environment ব্যবহার করুন। Page-এর content Claude-এর context-এ যায়, তাই browser-কে কখনো production data-র দিকে নেবেন না।
- একবার test user হিসেবে sign in করে session একটি file-এ save করুন। Source 4সোর্স 4 তারপর
--isolatedআর--storage-stateদিয়ে সেটি load করুন। Source 1সোর্স 1 --allowed-originsদিয়ে browser-কে আপনার test origin-গুলোর মধ্যে সীমিত রাখুন। মনে রাখবেন, এটি একটি guardrail, security boundary নয়। Source 1সোর্স 1--secrets <path>একটি dotenv file থেকে secret load করে। Tool response-এ মিলে যাওয়া plain text-কে Playwright MCP সেগুলো দিয়ে বদলে দেয়। README একে security feature নয়, একটি convenience বলে। Source 1সোর্স 1- Claude in Chrome-এ Claude আপনার browser-এর login state ব্যবহার করে। Source 3সোর্স 3 Claude যে browser ব্যবহার করে, সেখানে শুধু test account দিয়ে sign in করুন।