# Create a Gatling test from a Playwright browser session, with your coding agent

**URL:** <https://community.gatling.io/t/create-a-gatling-test-from-a-playwright-browser-session-with-your-coding-agent/9907>\
**Category:** Announcements\
**Created:** [October 28, 2026, 5:02pm UTC](https://community.gatling.io/t/create-a-gatling-test-from-a-playwright-browser-session-with-your-coding-agent/9907 "2026-10-28T17:02:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nveyret](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/nveyret/32/1685_2.png) [@nveyret](https://community.gatling.io/u/nveyret)\
**Post date:** [October 28, 2026, 5:02pm UTC](https://community.gatling.io/t/create-a-gatling-test-from-a-playwright-browser-session-with-your-coding-agent/9907/1 "2026-10-28T17:02:23Z")

</div>

Hey everyone,

You can now go from a live browser session to a working Gatling test, without leaving your coding agent.

 ![Playwright x Gatling_Update](https://europe1.discourse-cdn.com/flex013/uploads/gatling2/original/2X/1/1c7e00db9c06a857c3dde3e646c420862b3e6aa1.jpeg)

Here’s how it works:

- Start a session in your coding agent (Claude Code, Cursor, Codex, Windsurf, Antigravity) with playwright-cli and the Gatling AI plugin installed

- A headed Playwright browser opens on your site. Before each action, post a step name in the chat, like `starting: add to cart`

- The agent saves the requests of each step to disk, then builds the test from those files once the browser is closed

- It keeps only the calls to your API, extracts the values that change between runs (IDs, tokens) instead of hardcoding them, and writes a parameterized Gatling Java/Maven project with one block per step

- It compiles the test and runs it once with a single user to check that it replays. From there, change the injection profile and run it at scale on Gatling Enterprise Edition

The docs include a ready-to-paste prompt and the Gatling e-commerce demo site, so you can try the full workflow before using it on your own application.

Try it and let us know what you think: which journeys you recorded, where attribution or correlation went wrong, which coding agent you used, anything that doesn’t behave as expected.

Want to see it live? Heather Thacker runs a live demo on December 10, 6 PM CET / 12 PM EST, with Q&A.

Get started:

- Documentation: [Create a Gatling test from a browser session with Playwright and AI](https://docs.gatling.io/tutorials/create-with-ai/playwright-recorder/)
- Product page: [Playwright to Gatling](https://gatling.io/product/playwright)
- Live demo: [From click-through to load test with Playwright and Claude](https://gatling.io/sessions/playwright-to-gatling-live-demo)
- Try it at scale: [Gatling Enterprise Edition](https://auth.gatling.io/auth/realms/gatling/protocol/openid-connect/registrations?client_id=gatling-enterprise-cloud-public&response_type=code&scope=openid&redirect_uri=https%3A%2F%2Fcloud.gatling.io%2Fr%2Fgatling&utm_source=community)

---

<div class="post-metadata">

**Author:** ![will](https://avatars.discourse-cdn.com/v4/letter/w/90ced4/32.png) [@will](https://community.gatling.io/u/will)\
**Post date:** [November 12, 2026, 7:40am UTC](https://community.gatling.io/t/create-a-gatling-test-from-a-playwright-browser-session-with-your-coding-agent/9907/2 "2026-11-12T07:40:43Z")

</div>

Recording live Playwright browser steps and turning the captured network HAR/requests directly into a Gatling simulation is much cleaner than manually filtering out 80 static `.js`/`.woff2` calls from a browser HAR export.

Does the Gatling AI plugin automatically correlate dynamic auth tokens / CSRF headers across sequential steps (like extracting a token from the `login` response and injecting it into `add to cart`), or do you still refine the `check(jsonPath(...).saveAs(...))` extractors in the generated simulation code afterwards?
