r/Playwright • • Aug 02 '25

🚀 I built a Playwright test generator that writes tests from user stories - reduced our test creation time by 80%

0 Upvotes

Hey Playwright community! ��

I've been working on something that I think could be a game-changer for teams struggling with test coverage. After months of frustration with manually writing hundreds of Playwright tests, I built an AI-powered test generator that converts user stories directly into executable Playwright tests.The

Problem:

  • Our team had 500+ user stories backlogged for testing

  • Manual test creation was taking 2-3 hours per feature

  • QA team was drowning in repetitive work

  • Tests were inconsistent across team members

The Solution:I created a Node.js tool that:

  • Takes user stories in natural language

  • Generates comprehensive Playwright test suites

  • Includes proper assertions, error handling, and cleanup

  • Supports multiple browsers and viewports

  • Generates both happy path and edge case scenarios

Example Input:

"As a user, I want to add items to my shopping cart so that I can purchase multiple products at once"

Generated Test:

test.describe('Shopping Cart Functionality', () => {
  test('should allow users to add items to cart', async ({ 
page
 }) => {
    await page.goto('/products');
    await page.click('[data-testid="product-item"]');
    await page.click('[data-testid="add-to-cart"]');
    
    const cartCount = await page.locator('[data-testid="cart-count"]').textContent();
    expect(parseInt(cartCount)).toBeGreaterThan(0);
  });
});

Results:

  • Test creation time: 2-3 hours → 15-20 minutes

  • Test coverage increased by 40%

  • Consistent test patterns across the team

  • Reduced bugs in production by 60%

What makes it special:

  • Zero configuration required

  • Works with existing Playwright setup

  • Generates TypeScript tests with proper typing

  • Includes accessibility testing patterns

  • Supports custom test data generation


r/Playwright • • Nov 26 '24

Excited to share my LinkedIn Learning course on Playwright Design Patterns! 🎉

0 Upvotes

Good morning, r/Playwright! ☀️

I’m thrilled to share my new LinkedIn Learning course: Playwright: Design Patterns. 🎉

👉 https://www.linkedin.com/learning/playwright-design-patterns/welcome

This course is packed with insights and practical tips on:
1️⃣ Fixtures
2️⃣ Page Object Models
3️⃣ BDD (Behavior-Driven Development)
4️⃣ Data-Driven Testing

As a Test Automation Lead with experience working on large-scale Playwright projects, I’ve designed this course to help others master efficient testing workflows and build maintainable test automation frameworks.

I thought this community might find it useful! Let me know what you think or if you have questions. 😊


r/Playwright • • May 18 '26

The Playwright maintenance trap (and why simply wrapping LLMs around it isn't enough)

1 Upvotes

Hey Reddit,
I’ve spent the last 5+ years fighting flaky E2E tests and false-positive pipeline failures.

Recently, I started experimenting with autonomous coding agents to write test scripts. They can generate hundreds of lines of code in seconds, but I quickly noticed a massive flaw: they greedily write brittle, static tests just to make the pipeline pass in the moment. The second a developer changes a CSS class or a UI rendering is delayed, the test breaks, and someone has to manually intervene.

I realized that simple "self-healing" or prompt-engineering an LLM to guess a new selector isn't an actual fix—it's just a band-aid.

So, I decided to take a completely different architectural approach. I open-sourced a framework called agent-qa, but instead of making it a standard test generator, I built it around the concept of an "evolving execution memory."

Here is how the architecture is set up:

  1. It uses Playwright (web) and Appium (mobile) strictly as a low-level execution kernel.

  2. The AI harness sits on top, but it doesn't write static code. It executes steps written in natural language by observing the actual screen state and accessibility tree.

  3. The core difference: With every test run, it builds persistent Product, Suite, and Test memory. If it encounters a broken UI element, it attempts alternative paths to heal the test on the fly. Crucially, it saves that successful intervention to its memory so it doesn't waste tokens or time making the same mistake on the next run.

It basically learns your application's navigation model over time, dropping execution time and token usage significantly on subsequent runs.

I’m looking for brutal feedback on this architecture from other QA and automation engineers.

Link to the open-source repo and the technical docs is in the comments. Let me know what you think of the execution memory approach.


r/Playwright • • Jun 26 '26

PW-Core v1.2 is Live 🚀 What's New?

Post image
0 Upvotes

Dynamic Locators & Automatic Test Step Descriptions

As Playwright projects grow, two things usually grow with them:

• Similar locator definitions everywhere
• Reporting code that nobody enjoys maintaining

PW-Core v1.2 focuses on reducing both.

🚀 Dynamic Locators

Define locator patterns once and generate strongly typed locator keys throughout your application.

Benefits:

• ⚡Less locator maintenance
• ⚡Compile-time safety
• ⚡Full IntelliSense
• ⚡Cleaner page objects

Instead of maintaining dozens of similar locators manually, define a single pattern and let the PW-CORE generate the locator keys for you.

📝 Automatic Test Step Descriptions

Method names and parameters automatically become readable report steps.

• ❌ No test.step()
• ❌ No decorators
• ❌ No wrappers
• ❌ No additional report code

When your code changes, your reports stay in sync automatically.

PW-Core doesn't replace Playwright.

It stays 🎯 100% Playwright while focusing on:

• ✅ Developer experience
• ✅ Maintainability
• ✅ Readable reports
• ✅ Type safety

If you're maintaining a large Playwright codebase, I'd love to hear:

How do you manage locator duplication?

Do you use test.step() extensively?

How do you keep reports readable as suites grow?

How to Get Started?

New Projects - npm init pw-core
Existing Projects - npm install pw-core

🌐 https://qecore.github.io/pw-core


r/Playwright • • Dec 18 '25

Anyone else struggling to manage larger Playwright test suites?

1 Upvotes

I’ve been using Playwright for a while and really like it, but once test suites grow,

I keep running into the same issues:

- it’s hard to get a quick overview

- statuses are scattered across CLI output

- managing or inspecting tests means jumping between terminal and editor

I ended up building a small internal tool for myself that adds a simple visual layer on top of an existing Playwright project (no changes to the tests themselves).

Before I go any further with it, I’m curious:

how do you handle test visibility and management when Playwright projects get bigger?

Do you stick with CLI only, custom scripts, editor plugins, or something else?


r/Playwright • • Aug 27 '26

hello guy,i need your assistance. Im working as a manually tester, now i need to learn playwright automation using javascript. Can you tell me where to learn, which youtube channel is best and if any github repo available, send me the link.

0 Upvotes

r/Playwright • • Mar 16 '26

Turn Playwright scripts into polished product demo videos with AI voiceover

0 Upvotes

We automated testing.

We automated builds.

We automated deploys.

But demos?

Still screen recordings and prayer to the demo Gods!

So I built Argo.

Script your demo → generate the video. 🎬

https://github.com/shreyaskarnik/argo

Feedback, PRs welcome!


r/Playwright • • Feb 20 '25

Just finished my first 2 part short play - please critique

0 Upvotes

Title: The Boardroom of Sin

Characters:

  • Moose in a Suit – A high-flying executive, majestic, powerful, with a penchant for excess.

  • Executive – A Singapore-based corporate powerhouse with a very specific, primal desire.

  • Paid Company – A trio of glamorous, world-weary sirens of the night.

  • Pig in a Wig – A porcine observer, always reeking of onions.

  • Goat in a Coat – A philosophical commentator, prone to deep existential sighs.

  • K’tulu the Scrotal Bartender – A grotesque eldritch being, flesh hanging like the sagging remnants of time, pouring drinks with slimy appendages.


ACT ONE: BRIX Nightclub, Singapore.
Red lighting bathes the room in a sinful glow. A jazz band slouches through an erotic rendition of “Fly Me to the Moon.” The air is thick with cigar smoke, desperation, and the distant smell of onions. At a private booth in the corner, the Moose in a Suit and the Executive lounge with Paid Company draped over them. Pig in a Wig and Goat in a Coat observe from the bar, nursing tumblers of whiskey. Behind the bar, K’tulu the Scrotal Bartender pulsates ominously, his testicular mass shifting as he slops another round of whiskey into crystalline tumblers.


Moose in a Suit (swirling a glass of scotch, antlers casting a commanding shadow): Ah, the scent of conquest! Another quarter closed, another excess justified. The world, gentlemen, is a boardroom, and I am its chairman!

Executive (loosening his tie, eyes glistening with a heady mix of ambition and depravity): A fine sentiment, my antlered friend. But a deal is never truly closed until one’s— leans in, hushed tone —hairy plums have been savored by the right mouths.

Paid Company (chiming in like a well-rehearsed chorus, their voices dripping with transactional amusement): A man of taste and means, we see. And what does such a man wish of us tonight?

Moose in a Suit (laughing heartily, hooves thumping the mahogany table): Hah! The age-old dance of wealth and indulgence! My dear ladies, my friend here desires… how shall I put this? The most primal of boardroom negotiations.

Executive (raising his glass, voice thick with expectation): To business, then. The marketplace of flesh is open. Name your terms, ladies.

K’tulu the Scrotal Bartender (a voice like wet leather sliding over bone): THE CYCLE OF LUST AND AMBITION BEGINS ANEW. DRINK, FOR THE NIGHT IS YOUNG, AND THE FLESH IS WEAK.

Goat in a Coat (stroking his beard, sighing existentially): What is man but a beast in a suit, yearning for validation through acts of carnality? And what is woman but the knowing recipient, ever one step ahead in the game of power?

Pig in a Wig (grunting in agreement, sniffing himself, wincing): Aye. But let’s find a table far from the moose. He’s beginning to sweat, and I fear the musk of excess.

Curtain Falls.


ACT TWO: The Hotel Room, Marina Bay Sands
The room is a cavern of decadence. Red silk sheets drape over an obscene king-sized bed. Floor-to-ceiling windows offer a panoramic view of the Singapore skyline. The Moose in a Suit lounges on a leather chaise, glass of cognac in hoof. Paid Company circle him like sharks scenting blood.


Moose in a Suit (his voice thick with the arrogance of unchecked power): Ah, my dear sirens of the night, what is pleasure if not the ultimate merger? Here we sit, on the precipice of indulgence, our bodies mere vessels for the ecstasy of capitalism.

Paid Company (one tracing a manicured finger down his suit lapel, another lighting a cigarette with a flick of a gold-plated lighter): Tell us then, Mr. Moose, what precisely do you crave?

Moose in a Suit (tilting his antlers back, sighing with exaggerated grandeur): To feel the warm breath of submission on my furred dominion. To dangle my hairy plums in the sanctified space of mouth and mind alike.

Paid Company (laughing in rich, velvety tones, one reclining onto the bed, legs crossed as if at a business negotiation): A beast of industry, yet a beast nonetheless.

Executive (stumbling in, half-dressed, tie wrapped around his wrist like a corporate shackle): We are all beasts! raising his glass To hunger, to power, to the ceaseless ache that only flesh and finance can soothe!

K’tulu the Scrotal Bartender (materializing in the bathroom mirror, voice thick with ancient knowing): THE PATH OF EXCESS LEADS TO THE PALACE OF WOE. YET STILL, YOU MARCH.

Moose in a Suit (laughing, hooves spreading wide): And what a march it is! Let us consume, be consumed, and know no limits!

Curtain Falls.


r/Playwright • • Feb 25 '26

Our type system caught every data bug. It caught zero of the bugs users actually complained about.

4 Upvotes

We run strict TypeScript with zod validation on every API response, branded types for currency and IDs, the works. Our codebase is genuinely the most type-safe thing I've worked on in 10 years. I was proud of it and Then we launched the “checkout”

Support tickets started coming in.

"Price shows weird characters"

"Button doesn't respond on payment screen"

"Total says NaN for a second then fixes itself"

We checked the data layer API returned correct types, zod validated, state propagated properly. Every unit test passed. Integration tests passed. Cypress e2e passed. We sat there genuinely confused, like what are these users even talking about?

We asked for screen recordings. That's when it clicked. On a mid-range Samsung with 4GB RAM, there's a roughly 300ms window during a specific re-render where the price component unmounts and remounts because of how our conditional rendering interacts with a parent layout shift. During that window the price briefly flashes "$NaN", component renders once with stale props before updated state arrives on flagship phones this takes 40ms, totally invisible but on slower phones it's long enough that users think the price is broken.

The type system guaranteed the data was correct at every point in the pipeline. It did not and cannot guarantee the user sees correct data at every point in the render cycle. Those are two completely different problems. The second bug was even dumber. Our "place order" button was correctly positioned in the layout tree. Types fine, component rendered, onClick attached. But on phones with smaller viewport heights the system keyboard pushed the button behind a fixed-position price summary bar. Button existed. Button was typed. Button was rendered. Button was invisible to 20% of our users. No type error. No test failure. No crash. Just lost revenue. Third one: dark mode. Text color correctly followed the theme type, but on certain Samsung displays with "vivid" color mode enabled the contrast ratio dropped below readable. Technically rendered. Practically invisible.

None of these throw. None of these fail any test we had. I was skeptical at first because I didn't see how it connected to a rendering problem, but what it showed me about how our data was moving through the system let me rule out the entire backend in under 20 minutes and point the finger directly at the render cycle. What got me was this, drizz flagged a stale read pattern in one of our price selectors that had nothing to do with the bug I was actively chasing. No other tool had caught it, not our previous setup, not our logs, nothing. It found a bug we didn't know existed while we were trying to understand a bug we barely had words for. That genuinely doesn't happen. They're visual problems that only exist on real devices under real conditions. Our entire testing philosophy was "if types are correct and tests pass, the app works" Turns out that's only half the story.

Btw, I still love TypeScript. Still run strict mode. Still validate everything. But I stopped believing types alone protect users. Types protect your data. The screen is a whole different battlefield and for a long time I wasn't even looking at it.


r/Playwright • • Nov 26 '25

Playwright + AI: Create Tests Automatically with ZeroStep (Full Demo)

Thumbnail
youtu.be
0 Upvotes

r/Playwright • • Nov 13 '25

[OC] I created an AI framework to generate E2E tests from natural language — technical feedback welcome

2 Upvotes

I'm experimenting with an open-source project called E2EGen-AI
The idea is to use AI to translate natural language instructions into ready-to-use Playwright code. I'd love to hear feedback from those working on testing automation or LLM-based tools:
I have two answers: How realistic is it to automate end-to-end testing this way? and: Do you see any technical limitations or edge cases that need to be addressed better?
Any suggestions or criticisms are super helpful.


r/Playwright • • Oct 09 '26

Best Way to Learn?

1 Upvotes

Hi all, I’m looking to move into Playwright and learn to develop automation as I go.

Any tips on the best approach to take?


r/Playwright • • Feb 04 '25

Can anyone help me to Crack Playwright interview?

2 Upvotes

r/Playwright • • Jul 11 '26

I’m a 2nd-year frontend dev who got tired of broken E2E selectors, so I built an AI self-healing tool. I need your brutal feedback.

0 Upvotes

Hi everyone,

I’m a frontend engineer with about 2 years of experience at a startup based on South Korea. Like many of you, I absolutely dreaded it whenever our Playwright E2E tests broke just because someone renamed a button ID or tweaked the DOM structure. It felt like a massive waste of time to manually fix those selectors every single time.

I wanted to automate this, so I spent my weekends building an open-source tool: E2E-Self-Heal (https://github.com/Lee-Dongwook/E2E-Self-Heal).

Whenever a test fails, it takes the Playwright error log and git diff, passes it through an LLM agent loop (built with LangGraph) to diagnose the issue, patches the selector, verifies it against the live DOM, and re-runs the test until it passes. I also made sure to add a strict guardrail: it only touches failing locators/waits and never touches your assertions or test logic.

Here is my confession: I am a junior-frontend dev, not an AI/LLM expert. To build the LangGraph multi-agent architecture and handle things like context pre-processing and the selector verifier layer, I heavily relied on Claude to guide me through the setup.

While it currently works perfectly end-to-end on my local machine and in my test CI pipelines (using NVIDIA NIM / gpt-oss-120b), I know the code and the architecture are far from perfect. I am highly aware of its current limitations (like relying on a regex heuristic for JSX/TSX diff analysis instead of tree-sitter, which I plan to upgrade later).

I am sharing this here because I genuinely need the eyes of experts—both QA/testing veterans and AI engineers.

  • Is this approach to self-healing actually viable for your real-world workflows?

  • How can I improve the agent loop to make it more reliable and robust?

  • Right now, it's tied to NVIDIA NIM. I just opened an issue to abstract the LLM layer to support OpenAI/Anthropic/Ollama. If anyone wants to jump in and contribute, you are incredibly welcome.

The project is fully open-source (MIT), and you can see the architecture diagram and the demo in the README.

Please give me your most brutal feedback, ideas, or architectural roasts. I want to learn and make this genuinely useful.

Thank you!


r/Playwright • • Jul 23 '26

Three Playwright problems I got tired of working around (Shadow DOM, fragile selectors, 99K token pages)

3 Upvotes

If you write Playwright scrapers that touch anything beyond a basic landing page, you've dealt with at least one of these:

• Shadow DOM elements that Playwright's default locators can't reach

• Selectors that pass CI Monday and break Tuesday because some React dev sneezed on a class name

• Feeding a full page to an LLM and hitting 99K tokens just for the HTML of a Wikipedia article

I got tired of patching each one separately, so I built shadow-web. It's a pip-installable Python SDK that sits on top of Playwright.

────────────────────────────────────────────

What it handles

────────────────────────────────────────────

Shadow DOM flatten

Reads open and closed Shadow roots through the browser's own

JS API. No mutation, no re-renders. You get a clean DOM skeleton

with all interactive elements visible — the page stays exactly

as it was.

Self-healing selectors

heal_local.py catches when a button that was #submit becomes

.btn-primary[data-action="checkout"]. Fuzzy match on label +

type + position. Zero LLM cost. Cache lives in

~/.shadow-web/heal_cache.json.

Token compression

compressor.py strips scripts, styles, invisible elements and

builds a typed Action Map with semantic groups.

Wikipedia page: 99K → 16K tokens (−83%).

SchemaSnap

One call turns HTML tables into JSON records with typed columns,

forms into field schemas, lists into typed items.

export_table_json() and export_table_csv() — so you never write

another HTML table parser.

Content indexing for long pages

Get a ~600 token outline first, then fetch only the blocks

you need. Instead of dumping 50K tokens of article boilerplate

just to get the third section.

────────────────────────────────────────────

Quick start

────────────────────────────────────────────

pip install shadow-web

playwright install chromium

from playwright.sync_api import sync_playwright

from shadow_web.wrapper import ShadowPage

with sync_playwright() as p:

page = p.chromium.launch().new_page()

page.goto("https://example.com")

shadow = ShadowPage(page)

_, xml_map = shadow.refresh()

print(shadow.capture_stats)

────────────────────────────────────────────

Links

────────────────────────────────────────────

GitHub: https://github.com/ulinycoin/shadow-web

PyPI: pip install shadow-web

If your scraper breaks on some Angular app with 13 layers

of Shadow DOM, open an issue. Those edge cases make

the project better.


r/Playwright • • Apr 30 '25

playwright stealth plugins

0 Upvotes

I've tried to lookup any stealth plugins for playwright to avoid fingerprinting but i couldn't find any for JavaScript, this is super disappointing, anyways what do you guys do to get around this??


r/Playwright • • Oct 28 '24

Need to upskill quick

0 Upvotes

I need to learn Playwright pretty quickly. I have used it at a very basic level. Does anyone know of any websites, courses etc that could expedite my learning? TIA 🙏🏻


r/Playwright • • Jul 24 '26

Tutorial de Automatizar el navegador con Python y Playwright

0 Upvotes

Playwright es una librería desarrollada por Microsoft que permite controlar navegadores web (Chromium, Firefox, Safari) mediante código. Puedes hacer clic en botones, rellenar formularios, esperar a que carguen elementos, extraer datos o hacer capturas de pantalla, todo de forma automática.

**¿Por qué Playwright y no Selenium?**

* Es más rápido y moderno (lanzado en 2020 vs 2004) * Espera automáticamente a que los elementos estén listos (auto-wait) * Soporta páginas con JavaScript pesado (React, Vue, Angular) sin configuración extra * API más limpia y consistente * Soporte nativo para múltiples pestañas, iframes y descargas

Si ya conoces Selenium, Playwright te resultará familiar pero notarás inmediatamente que hay menos fricción.

1. Instalación

Necesitas Python 3.8 o superior. Instala la librería y los navegadores con dos comandos:

pip install playwright
playwright install

El segundo comando descarga Chromium, Firefox y WebKit (Safari). Si solo quieres Chromium para ahorrar espacio:

playwright install chromium

Verifica que funciona:

from
 playwright.sync_api 
import
 sync_playwright
with
 sync_playwright() 
as
 p:
    browser = p.chromium.launch()
    page = browser.new_page()
    page.goto("https://example.com")
    print(page.title())
    browser.close()

Si ves `Example Domain` en la consola, todo está funcionando.

2. Conceptos clave antes de empezar

Antes de escribir código, entiende estos tres objetos que usarás constantemente:

ObjetoQué esAnalogía
BrowserEl navegador abiertoLa ventana de Chrome
PageUna pestaña del navegadorUna pestaña dentro de Chrome
LocatorUn elemento de la páginaUn botón, input o div concreto

La mayoría de tu código seguirá este patrón:

Browser → Page → Locator → Acción

3. Modos de ejecución: sync vs async

Playwright ofrece dos APIs:

**Síncrona** — más simple, ideal para scripts y automatizaciones lineales:

from
 playwright.sync_api 
import
 sync_playwright
with
 sync_playwright() 
as
 p:
    browser = p.chromium.launch()
    page = browser.new_page()
    # tu código aquí
    browser.close()

**Asíncrona** — para integrar con frameworks como FastAPI o cuando necesitas ejecutar varias tareas en paralelo:

import
 asyncio
from 
playwright.async_api
 import
 async_playwright
async
 
def
 main():
    
async
 
with
 async_playwright() 
as
 p:
        browser = 
await
 p.chromium.launch()
        page = 
await
 browser.new_page()
        # tu código aquí
        
await
 browser.close()
asyncio.run(main())

Para este tutorial usaremos la API **síncrona**. Es más legible y suficiente para el 90% de los casos.

Mas informacion: [https://agusbot.com/blog/python-playwright-tutorial/](https://agusbot.com/blog/python-playwright-tutorial/)


r/Playwright • • Aug 31 '25

Wish me luck 🤞

0 Upvotes

I’ve trained folks at work before, now starting to train job seekers in Playwright automation. This time doing it as a side hustle 💸 Wish me luck 🤞


r/Playwright • • Jun 29 '26

I got tired of CSS changes breaking my E2E tests, so I built an open-source automation framework that uses local VLMs instead of DOM selectors (Playwright + Ollama)

4 Upvotes

Hey everyone, I recently open-sourced Vouch, a vision-driven web automation framework designed to eliminate brittle DOM selectors and XPaths from E2E testing. Instead of parsing HTML, Vouch passes the raw visual viewport to a Vision Language Model (VLM) to determine interaction coordinates. You write test steps in plain English, and the framework executes them visually.

Key Features:

  • Zero Selectors: Test files are authored in natural language.

  • 100% Private & Local: Integrates natively with local instances like Ollama, keeping your application data completely on your machine.

  • Self-Healing: Uses an Actor-Critic loop to validate execution steps and handle UI unexpected states on the fly. I would appreciate your feedback, code reviews, or contributions.

GitHub: https://github.com/HackX-IN/vouch NPM: https://www.npmjs.com/package/@inamul_hasan/vouch

(Stack: Node.js, Playwright, Ollama)


r/Playwright • • Jun 21 '26

Why knowing Selenium/Playwright is not enough

4 Upvotes

I'm sure you've seen this before. Someone with great framework knowledge can write good scripts and build a solid automation setup, but still struggle to move from completing automation tasks to doing real QA automation.

Usually, the missing piece is the thinking behind it.

Clicking a button takes 2 minutes to automate. The real testing starts after that.

What if the user clicks it twice? Internet drops? Enters invalid data? Does something unexpected?

Tools are important, but critical thinking and problem-solving are what make someone stand out.

What do you think is the biggest difference between writing automation scripts and doing automation properly?


r/Playwright • • Sep 30 '25

Why write test scripts when you can use playwright mcp?

0 Upvotes

Playwright mcp has gotten really good over the last 6 months, and works well with an intelligent mcp host client. Why continue to write playwright code when you can have the agent perform the tasks?

Pros of using mcp:

  1. The agent automatically can try a different path if the first attempt didn't work

  2. It's pretty reliable

Cons:

  1. It executes slower since it uses AI.

  2. It needs a bit of context of what workflow to complete

However, with playwright scripts:
Pros:

  1. They execute super fast

  2. You have more control since you have the code

Cons:

  1. They're unreliable and flaky

  2. Time-consuming to update and maintain

Here is an example of how I was able to test a workflow using playwright mcp + agent working. https://www.loom.com/share/caa295aa921f4e71bb10e0448838a404?sid=0023ddcc-7a24-4f54-975e-606742decee8


r/Playwright • • Oct 23 '26

Orientación.

0 Upvotes

Hola, buenos dias. Espero que se encuentren muy bien.

Le escribo para consultarles sobre una implementación de automatización que me genera duda. Actualmente en un proyecto, que está dividido en tres repositorios diferentes: un frontend en Next.js, un backend también en Next.js y un controlador en Python.

Mi idea inicial es utilizar Playwright e instalarlo directamente en el repositorio del frontend para cubrir las pruebas E2E y los flujos principales.

Me gustaría pedirte tu orientación para saber cuál sería el flujo o la arquitectura correcta para estructurar estas pruebas considerando esta infraestructura multirepositorio. Además, quisiera saber de qué manera práctica podría integrar algo de IA para potenciar el proceso, ya sea en la generación de pruebas, mantenimiento o análisis de resultados.

Agradezco de antemano cualquier consejo, guía o paso a paso que me puedan compartir. Muchas gracias


r/Playwright • • Jun 14 '26

Help in building an Instagram profile scraper with Playwright Python

0 Upvotes

Hi there!

I'm working on a project which requires scraping of 100–300 Instagram profiles on a recurring basis and need guidance from people who've done this or similar projects.

Stack I have choosen:

  • Playwright (Python) for browser automation

  • PostgreSQL for data storage

  • N8N for scheduling and workflow automation

Data Extraction from profiles:

  • Follower / following counts

  • Bio, profile metadata

  • Recent post metrics (likes, comments, post frequency), and some others.

I'm in between beginner and intermediate stage in web scraping and I need help in:

  1. Proxy strategy — residential vs. datacenter for this volume? Any low cost solutions you've had good results?

  2. Rate limiting — what delays and session patterns have worked for you to avoid blocks at this scale?

  3. Job queue and batch processing —Celery + Redis vs Playwright's(python's) built-in async with a semaphore or any other low cost solution?

  4. Selector stability — Instagram's DOM changes frequently. How do you handle selector drift without constant maintenance?

It would be very helpful if you could provide with any architecture tips, or pointers to open-source, etc..

Thanks