3,493 questions
Best practices
0
votes
0
replies
62
views
Best architecture for frontend integration tests in a multi-repository setup with shared page objects
I need to design a frontend integration test architecture from scratch for an application split across many repositories, where each repository owns a separate feature of one product (such as user ...
0
votes
1
answer
111
views
Playwright giving me hard time running a browser on existing chrome profile
I have been browsing through web, debugging with llms but not able to resolve this simple thing.
Here's my code:
// @ts-check
import { chromium, test } from '@playwright/test';
import { rmSync } from '...
Advice
0
votes
2
replies
51
views
How to reliably locate elements in Playwright when id, class, and name attributes are missing or dynamic?
I am using Playwright to generate test cases and interact with web elements. In many cases, I rely on locators such as id, class, or name. However, I’ve encountered situations where these attributes ...
0
votes
1
answer
85
views
Lock playwright locator to a specific (existing) dom element
In playwright (1.58.2), I have the following code:
while (await this.loadMoreButton.isVisible()) {
const detachEvent = this.loadMoreButton.waitFor({ state: 'detached' }); // bind to button we ...
-3
votes
0
answers
61
views
Playwright with produces false positives with toMatchAriaSnapshot on GitHub
Playwright is producing false positives on GitHub:
Github (passes): npx playwright test --grep-invert @prod --shard=1/3
Local (fails, same command, same commit as Github!): npx playwright test --grep-...
1
vote
0
answers
86
views
How to isolate client certificates per browser context in Playwright for parallel execution? (Ubuntu)
I’m working on a system that performs login using client certificates and I need to run multiple browsers in parallel, each one using a different certificate.
The requirement is to fully isolate each ...
0
votes
1
answer
87
views
Playwright (Edge) fails after "Switch Edge profile" during login.microsoftonline (Target page has been closed)
Body
I’m trying to set up basic Playwright tests for an internal company portal that requires Microsoft authentication (M365 + MFA).
Goal
My goal is to:
Run tests in headed mode once
Manually log in
...
Tooling
0
votes
1
replies
107
views
Do teams still find UI automation with Selenium or Playwright difficult to maintain as projects scale?
Curious how teams handle UI automation as their applications grow.
Many teams start with Selenium or Playwright, but over time the test suite grows and maintenance becomes challenging when the UI ...
2
votes
2
answers
93
views
Testing if a dialog is pop-up with Playwright for Java
I have a question about dialog in Playwright Java.
My understanding is that you can handle dialog through onDialog(), offDialog(), onceDialog(). But they are not suitable for testing if a dialog is ...
0
votes
0
answers
72
views
Open Test Browser incorrect Arguments in robot file
I may have missed something completely basic in my setup.
We have a cumulusci project, where we're building robot tests utilising SalesforcePlaywright.robot. I'm trying to test the Browser ...
4
votes
1
answer
106
views
Scrolling secondary scrollbars in webpage using Python Playwright
I am trying to automate a webpage containing more than one scrollbar. Sometimes the scrollbar is on the left side and sometimes it is in the middle of the page (e.g.: adjacent to a web table). These ...
1
vote
1
answer
174
views
How to run Playwright from AWS Lambda
I am trying to run Playwright test as part of SSM Automation by invoking Lambda function. I tried few approaches to create Docker image.
Use AWS nodejs-lambda base image.
FROM public.ecr.aws/lambda/...
-5
votes
2
answers
156
views
Problem with setting up Langchain agents to use Playwright
I can't make this work:
from langchain_community.agent_toolkits import PlayWrightBrowserToolkit
from langchain_openai import ChatOpenAI
from langchain.agents import create_agent
import asyncio
import ...
0
votes
0
answers
96
views
How to automate Electron.WebContentsView using playwright
we were using below code to run automation when there was electron BrowserWindow support but now our electron application is using Electron.WebContentsView, suggest changes for this? we are using
&...
Best practices
0
votes
0
replies
139
views
Playwright Mcp vs Openbrowser mcp . Can you expect the token gap?
Spent the last few days going deep on MCP server options for browser automation and the token usage difference between Playwright MCP and OpenBrowser is something my team genuinely did not see coming ...
0
votes
0
answers
120
views
Is it possible to add and show new status "PARTIAL PASS" in Playwright HTML report?
Currently Playwright supporting PASSED, FAILED, FLAKY, SKIPPED status and showing in html report.
Sample Report:
I have a scenario in my project to show few cases as "PARTIAL PASS".
Is it ...
Advice
0
votes
2
replies
80
views
Playwright Allure Report in Email
I had implemented playwright test with typescript. It's working good with following command.
npx allure generate allure-results --clean -o allure-report
npx allure open allure-report
reporter: [['...
Best practices
1
vote
2
replies
61
views
How to document / annotate scope of end-to-end browser tests?
I am a experienced web developer, and a newbie in regards to end-to-end browser tests development.
Currently, I am writing end to end tests for an existing website. Those end-to-end tests I develop ...
3
votes
0
answers
60
views
Playwright / Stagehand: setInputFiles does not upload file inside iframe even though input exists
I’m currently working on an automated test using Stagehand, however, when trying to upload files, I’m not able to do it reliably.
After filling out a form, the test successfully uploads a file using ...
Advice
1
vote
2
replies
118
views
How to check if 1000+ Twitter users have tweeted a specific keyword without using the paid API?
I have a list of 1,000 Twitter handles and I need to check if each user has tweeted a specific keyword at least once.
Since the Twitter API Free tier no longer allows reading user timelines or ...
2
votes
1
answer
140
views
How do you retry Playwright tests in Python?
There is nice documentation for how to tell Playwright to retry tests using Node.js, but I can't find anything on how to do so with Python/Pytest. The closest solution I can find is pytest-...
Advice
0
votes
0
replies
48
views
Playwright - Is it possible to preload a test before starting the timer? Or is there a better solution
Before we start, I want to be clear I have searched the docs and multiple forums for a solution and understand what I'm looking for might be an anti-pattern but any input would be appreciated.
...
0
votes
1
answer
142
views
How to have user log in once and then reuse the same session over different python-playwright browser tests?
Using
dependencies = [
"pytest>=9.0.2",
"pytest-playwright",
]
in a Python application I am setting a a browser end to end test.
I have defined custom markers:
[tool.pytest....
2
votes
1
answer
232
views
Runner button not showing and No tests found [closed]
I am setting up Playwright + TypeScript + ESM with data‑driven tests (reading from an Excel file).
However, in VS Code, the Playwright Test Runner button does not appear.
In the terminal, Playwright ...
6
votes
1
answer
283
views
Make Playwright MS Edge screenshots stable and platform independent
Since Playwright 1.54 and around MS Edge 140 I am having trouble keeping the screenshots stable between runs on the same machine, and between runs on different machines (WSL vs. Ubuntu). I narrowed it ...
0
votes
1
answer
127
views
Playwright API waitForSelector does not work at second time
await page.waitForSelector('#progressBar', { state: 'hidden' }); //work
await page1.locator('#input').fill('1234567890');
await page.getByRole('link', { name: 'click me' }).click(); //after clicking ...
4
votes
1
answer
386
views
Puppeteer (even with Stealth plugin) or Playwright can't login on Google Account
I’m trying to make my Node.js script automatically log in to YouTube, but when I use Puppeteer (even with the stealth plugin) or Playwright, the Google login page shows:
“This browser or app may not ...
0
votes
0
answers
85
views
API-based authentication with Azure AD B2C ROPC flow - storage state doesn't work
I'm trying to speed up authentication in my Playwright E2E tests. Currently using UI-based login which takes 30-60 seconds per account. Our app uses Azure AD B2C for authentication.
What I've tried:
...
Best practices
1
vote
2
replies
74
views
How to sync a local project folder into a browser-only online code editor?
I’m using an online code editor that only runs in the browser. There’s no Git support, no zip upload, and no API.
The only way to manage files is through the UI (create file/folder, delete, edit ...
-2
votes
1
answer
94
views
How to fix Playwright error on Collapsible Sidebar Menu
Tried to write a Playwright script for Navigating on dashboard pages, however when clicking on the collapsible sidebar, it says Timeout exceeded. I tried adding delay however it seems its not working:
...
0
votes
1
answer
127
views
Automatic delete when trying to fill in Password in input type
I'm writing a Playwright script to log in to dashboard, however my script won't redirect to the Dashboard itself after clicking the Login button. Not sure why but it says Timeout exceeded.
import { ...
0
votes
1
answer
178
views
How to integrate Playwright engine into Artillery load tests?
I am struggling of how to integrate Artillery's Playwright engine for my load tests.
Both packages are packaged within a DevContainer based on the instructions of this question. I am able to execute ...
4
votes
1
answer
101
views
Not able to validate the error tooltip as it does not show in DOM
I am using Playwright to automate a website: https://demo.automationtesting.in/Register.html
Without filling anything, click on Submit. An error tooltip will show up. I would like capture and validate ...
2
votes
0
answers
221
views
How to install Playwright and Artillery in the official JavaScript DevContainer (bookworm-24)?
I’m trying to set up a DevContainer environment based on mcr.microsoft.com/devcontainers/javascript-node:24-bookworm that includes:
Artillery (performance testing),
Playwright test runner, its ...
1
vote
2
answers
174
views
Migrate MSTest v3 to v4 breaks Playwright Tests
I have a small Blazor WASM application called AudioCuesheetEditor. This application is tested by playwright tests for end 2 end coverage. I'm trying to update the project regularly when new ...
Best practices
0
votes
4
replies
115
views
API testing approach
My team is developing functional component (developed in C#) which is API based. The component will handle API requests from external system (future to have UI test). I prefer to have API testing ...
0
votes
0
answers
238
views
How do I run npx bddgen?
I am trying to get my test project set up to run with Playwright, Cucumber, and TypeScript. I have a large bank of pre-existing Gherkin feature files, and have written TypeScript step definition files ...
0
votes
0
answers
105
views
decrypting oddspot data through response interception
import asyncio
from datetime import datetime, UTC
from playwright.async_api import async_playwright
captured = []
async def run():
async with async_playwright() as p:
browser = await p....
Advice
0
votes
1
replies
197
views
which is the best folder structure format for e2e automation, playwright?
I was looking into different folder structure for e2e automation framework using playwright. is this good practice to have spec, page object and data file is same folder in e2e?
apps/
└── app-e2e/
├─...
2
votes
1
answer
144
views
How to normalize screenshot paths for test retries to compare against same baseline?
I'm using Playwright for end-to-end testing with Argos CI for visual regression testing. My tests have retries enabled (retries: 2), but when a test fails and retries, the screenshot paths change, ...
Best practices
1
vote
1
replies
119
views
Implementing Page Object Model (Playwright vs Cypress)
I started using Playwright, and one of the first things I noticed is that if you're trying to implement a custom page object that stores methods, click actions, and assertions, you should create a ...
2
votes
1
answer
165
views
Playwright locator can find only one element by class
I'm just starting in Playwright, and I'm confused by locator behavior.
A page starts with the structure in the image below.
Using
url = 'https://skylines.aero/flights/115429'
with p.sync_playwright() ...
0
votes
2
answers
139
views
How to get vaadin selecter with Playwright?
I've tried to find a solution online on how to work with playwright and vaadin code but no chance.
Playwright is installed in VS Code, is up and running, I have my test explorer installed and node.js. ...
2
votes
3
answers
286
views
What replaces the deprecated page.type method in playwright?
I noticed that page.type is deprecated in Playwright. Google's AI overview told me that I need to use locator.fill instead but it isn't working for the field I want to fill.
await this....
0
votes
1
answer
400
views
Bypassing MFA in salesforce UI automation via playwright
We have 2gp managed package that we are writing automation for, we already have automated api testing but struggling in UI automation as salesforce recently mandated MFA in most of the editions ...
Tooling
0
votes
2
replies
57
views
chrome-devtools - possible to screenshot network traffic or record *.har traffic for offline presentation
I run some performance-tests (Grafana K6) and would like to screenshot the network traffic on the frontend nodes.
Is there a way to do this with Chrome Devtools, Selenium, playwright?.
I can do ...
0
votes
2
answers
365
views
issue of running playewright using bunjs
i am trying to run playwright in bun. but when i run bun run test.ts, the output hangs at Launching Chromium....
output:
PS D:\\Javascript files\\ss_url_project_copy\\backend\> bun run test.ts
...
Advice
0
votes
3
replies
93
views
How to navigate to domain (not url) in Python Playwright?
I know that Playwright has Page class with goto() method, but it accepts url only. In my use case I'll most probably test sites knowing only their domain, so I'd have let's say google.com as url ...
-2
votes
1
answer
389
views
How do I disable test results in Playwright
I have playwright test which I need to run in Azure function. It runs fine locally but when deployed to Azure function it fails with error below. The only reporter configured is list and it shall not ...
Advice
0
votes
1
replies
114
views
Exclude ffmpeg on installation
I use Playwright for recording and playback of the tests, but because of specific constraints, I can't have ffmpeg installed as part of Playwright. I want to find a way to exclude ffmpeg from being ...