r/Playwright

Does anyone have idea for this?

Guys, I NEED HELP! I need ideas for a theatrical exercise of up to 5 minutes, WITH ONLY TWO FACES IN CONFLICT, simple, whose characters, action, GIVEN CIRCUMSTANCES and relationship will be understood, that is non-verbal and that it is justified that they do not speak (or that the action is such that words are superfluous (dramatics, etc...) or that it is justified that they do not speak (they were tapped, for example, I have no idea)). Props, sound and light can be used and it must not become a pantomime. THE MOST IMPORTANT THING IS THAT THEY DO NOT SEE IT COMPLICATED AND UNDERSTAND THEIR GIVEN CIRCUMSTANCES AND WHO THEY ARE. PLEASE HELP🙏, I have no idea, and I have an assignment for school. Thanks a lot!

reddit.com
u/Expert_Cheesecake352 — 18 hours ago
▲ 4 r/Playwright+1 crossposts

How are you guys running Playwright/Puppeteer in production?

I’ve been going down the rabbit hole of browser-based scraping lately and I’m curious how people here are handling it in production.
Are you running Playwright/Puppeteer on your own VPS/Kubernetes, or using something like Browserless, Browserbase, ZenRows, Bright Data, etc.?
I’m mostly wondering:

What’s been the biggest pain point?
Is it browser crashes?
Scaling?
Proxy management?
Cloud costs?
CAPTCHAs?
Anti-bot detection?
Something else entirely?

If you’re self-hosting, what made you decide not to use a managed service?
And if you’re already paying for one, what’s the main reason? Reliability? Less maintenance? Better success rate?

I’m asking because I’m trying to understand what problems are actually worth solving instead of making assumptions. Every blog post says something different, but I’d rather hear from people who are running this stuff every day.
Would love to hear your setup and what’s been working (or not working) for you.

reddit.com
u/Fun_Implement_3887 — 21 hours ago

What’s missing from this AI-driven E2E testing workflow?

I’m designing an AI-assisted Playwright workflow for E2E/regression testing and want expert criticism before we push it further.

High-level flow:
• AI explores the UI
• AI generates scenarios and Playwright tests
• AI runs tests and gathers evidence
• AI attempts self-healing on failures
• Humans validate business correctness and approve bug reporting
• The result is a regression-ready suite

This sounds good on paper, but I’m sure there are practical issues I’m underestimating.

My current assumptions are:
• the biggest risk is weak business-intent coverage
• the first failure mode is flakiness / shallow assertions
• self-healing should only fix locators and synchronization, not assertions or expected outcomes
• AI-generated tests should require human review before entering the stable regression suite

For those with deep QA / automation experience: which of these assumptions do you agree or disagree with, and what am I still missing?

I’d really appreciate blunt feedback.

u/Consistent-Career636 — 2 days ago
▲ 0 r/Playwright+1 crossposts

How do I pitch a show to producers?

I am a writer, and I have written what was originally supposed to be a play to be put on at a local school. Im half way done writing and we're at about 400 pages. This play has become sort of a TV show in length at this point. Am I able to pitch a filmed stage production to any company's? If so, how do I do so. Correct me if I'm wrong, but I think a multi episode TV show performed on a stage has never been produced before. I plan to finish writing before anything else, but I want to know how to pitch this to somewhere that matters.

reddit.com
u/BurntwaflleXD — 3 days ago

Which Playwright JavaScript framework is most commonly used by companies?

I have completed Playwright with JavaScript basics and now want to learn real-world frameworks used in company projects. With Selenium + Java, companies commonly use Hybrid Framework, POM, TestNG, and Cucumber. What are the equivalent frameworks or project structures used with Playwright + JavaScript in MNCs? Also, where can I learn them? I can find basic Playwright tutorials on YouTube, but not complete real-world framework or project tutorials. Please recommend any good YouTube channels, GitHub repositories, courses, or free resources. Thanks!

reddit.com
u/Educational-Bed-4757 — 4 days ago

Need a good website to practice on

I need a good website for putting my Playwright skills into actual hands-on practice?

I've spent the last 10 years working with Selenium, and over the last few months, I've been going through Playwright videos on Udemy and getting myself up to speed. The only thing I'm missing, is real experience.

reddit.com
u/Ok-Channel55 — 4 days ago

After months of fighting flaky tests, the fix wasn't better waits. It was getting rid of brittle selectors.

I spent a long time treating flakiness as a timing problem. Added waits. Added retries. Bumped timeouts. Tests still went red on CI and green on my machine, the usual.

When I finally looked at what was failing, almost none of it was timing. It was selectors. A class name changed, a wrapper div moved, someone restructured a component, and a test that asserted nothing about that change broke anyway. The test wasn't testing the feature, it was testing the DOM shape, and the DOM shape changes constantly.

Two things actually moved the needle for me:

The boring one: stop selecting on structure. Lean on roles and accessible names and user-visible text instead of CSS paths and nth-child. Playwright's getByRole and getByText already push you this way. Most of my flake came from the handful of places I'd ignored that and reached for a brittle selector because it was faster to write.

The less boring one: for the flows that kept breaking, I started describing the intent ("click the submit button in the checkout form") and letting that resolve at runtime, with a fallback when the obvious locator moves, then exporting the result back to a normal Playwright script once it was stable. It killed a category of flake, but I want to be honest about the cost: it's less deterministic, it's slower to run, and for anything critical I still pin an explicit locator and a hard assertion. It's a tool for the churny parts, not a replacement for the suite.

Anyway, curious what everyone else's actual number one is. Not the textbook answer, the thing that genuinely cut your flake rate. Trying to build a real list.

reddit.com
u/asadlambdatest — 5 days ago
▲ 3 r/Playwright+1 crossposts

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)

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)

u/zenitsu--DS — 6 days ago
▲ 13 r/Playwright+1 crossposts

Built a Playwright + TypeScript Framework for My Portfolio – Looking for Brutally Honest Feedback

Hy Everyone,

Looking for Feedback on My Playwright + TypeScript Test Framework. I'm putting together a Playwright + TypeScript portfolio project that demonstrates how I design and structure a test automation framework from scratch.

I'd really appreciate some honest feedback. Feel free to roast it, point out bad practices, suggest improvements, or tell me what you'd do differently. Don't hold back—I want it to be something I'm proud to show in interviews.

Repo:
https://github.com/dongokovacs/playwright_ts

https://dongokovacs.github.io/playwright_ts/

api,ui,hybrid

thanks

u/HyenaOk3114 — 6 days ago

Credits Issue

I have credits remaining but still getting this msg
Please help out if anybody knows about this

u/Iseeyouuuuuuuuu — 5 days ago

Best antidetect browser in combination with Playwright?

Hey, I’m looking for an antidetect/profile browser to use in combination with Playwright.

reddit.com
u/legenddragon26 — 4 days ago

A visual walkthrough of Playwright fixture setup, teardown, and scopes

Playwright fixtures are convenient, but their execution order can be hard to see from code alone. I used timeline reports to visualize test- and worker-scoped fixtures, their dependencies, overrides, and auto-loading mode.

The practical takeaway: always check fixture scope and dependencies. A fixture that looks small in code can still significantly affect test performance.

medium.com
u/vitalets — 5 days ago

Please help me trigger AJAX based network requests without making the code brittle...

So I have made a project which goes to different company websites, and get back the bio/about of people in the teams page.
I am facing an issue there.
Currently I was dealing with dynamic components/modals using the below method:-

admin-ajax.php

- Going to the page using playwright
- Using GET command for all XHR and Fetch and Document on that page.
This was very generic, I did not have to make different concepts for different dropdowns, or sections etc.

But now there is this one site where I am facing issue since the request is AJAX based. What happens is I will HAVE to interact with the picture in order to get the payload for the requests.

I do not want to click on the components, it makes the code very hardcoded, and agentic fails, cuz this pipeline will have to run for MANY companies.

This ajax request works on different payloads of sections AND queries.

And the site contains different section:

Directors | Partners | Investors | Investor Relations | etc.

I want every single person of every single section without making it hardcoded. It makes the code messy.

Sometimes the section is of document type, so I call XHR and Fetch network requests AGAIN in order to get all people. but for this particular page, EVERYTHING is ajax based, its a POST request which demands for the query id and the person id. This asks for the code to be brittle which I cannot afford.

reddit.com
u/error-dgn — 7 days ago
▲ 22 r/Playwright+4 crossposts

I got tired of guessing step definitions, so I built a better BDD extension for VS Code (GherkinLens v2)

Hey everyone,

If you write .feature files in VS Code using pytest-bdd or behave, you probably know the pain of typing out steps from memory, hoping they match, or constantly grep-ing your codebase to find out how a step was implemented.

I actually developed this because our team was migrating from PyCharm, and I realized there was no full-scale solution for the Python Gherkin environment in VS Code. So, I built GherkinLens to solve all the editor and navigation problems first, and then started adding time-saving features.

I just released v2, which totally pushes it one step further, and I wanted to share it with you all.

Basically, it indexes your Python step definitions in the background (without actually importing or running your code) so you get a proper IDE experience for Gherkin.

Vscode extension - GherkinLens

Here's what I added in v2:

  • 📚 Step Library: There's a new sidebar panel that lets you browse and search every step definition in your project. It even shows usage counts, so you know which steps are actually being used.
  • 🏷️ Tag Explorer: You can finally see all your tags in one place, find scenarios easily, and run/debug them straight from the tree.
  • 📊 Table Editor: I added a built-in spreadsheet editor for Examples tables. You can add rows, paste from Excel, or import CSVs directly into the feature file without messing up the pipe | alignment.
  • 📋 Snippets: You can now save multi-step flows and drop them in anywhere.

It still has all the core features from v1 (the stuff that fixes the navigation problems):

  • ⚡ Autocomplete & Go to Definition (F12) between your Gherkin and Python files.
  • ⚠️ Squiggly lines for steps that don't match anything.
  • 💡 Quick Fix (Ctrl+.) to auto-generate the Python stub for a missing step.
  • 🏃 Native BDD Runner hooked into VS Code's Testing view.

It auto-detects whether you're using pytest-bdd or behave, so there's zero config needed.

If you want to try it out, just search for "GherkinLens" in the VS Code Marketplace. It's completely free.

Would genuinely love to hear what you guys think, or if there's anything driving you crazy in your BDD workflow that this could fix!

u/chinmay_3107 — 8 days ago

Anyone using MCP with Playwright for email-based user journeys?

I built an MCP server for email workflows and connected it with Playwright MCP.

Now AI agents can create inboxes, read emails, extract OTPs/verification links, and continue the user journey without writing custom email handling code.

I built it after seeing many teams struggle with testing email verification, password reset, and OTP flows in their E2E tests.

Anyone interested in learning more about how this works?

reddit.com
u/justneardy — 9 days ago