3,499 questions
Advice
0
votes
0
replies
24
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/
├─...
-1
votes
0
answers
77
views
Connecting third party tools with Playwright [closed]
We are currently using Selenium testng framework for our functional automation and we had developed 2000 test cases and running in parallel 100 nodes in AWS Device Farm. Now we are started using ...
2
votes
1
answer
68
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, ...
-4
votes
0
answers
70
views
How to architect a web app that queues and executes browser automation jobs? [closed]
I'm building a full stack application where users can trigger browser automation tasks (web scraping, form filling, data extraction) from a web UI.
Requirements:
Users submit automation jobs via a ...
0
votes
1
answer
94
views
Playwright: page content jumps alternating from left to right and back [closed]
I am using playwright 1.57.0 to test login automation. The process fails when entering a verification code, after the credentials have been successfully submitted.
The setup is as follows:
# config ...
0
votes
0
answers
60
views
Playwright flake: locator.click times out on Angular Material slide-toggle because "element is not visible" [closed]
I am writing E2E tests for an Angular application using Playwright. I am encountering a flaky issue when trying to interact with an Angular Material slide toggle (mat-slide-toggle).
Most of the time ...
-3
votes
0
answers
87
views
How to use SOCKS5 proxy with auth in python playwright [closed]
I know what playwright browser don't support socks5 proxy with auth. But maybe exists some way to use it? except socks->http tunnel. Maybe some libs?
Best practices
1
vote
1
replies
53
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
76
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
1
answer
72
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. ...
1
vote
2
answers
79
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
56
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
46
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 ...
-1
votes
1
answer
103
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
69
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 ...
-1
votes
1
answer
166
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
53
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 ...
Advice
0
votes
1
replies
36
views
How do I convert a trx file into html in azure test pipeline
So how do I convert a TRX file into html in azure test pipeline.
We have a selection of pipelines which run tests on a nightly basis. The tests are designed in Visual Studio with C#, Playwright, ...
Advice
1
vote
3
replies
81
views
Cannot read properties of undefined (reading 'goto')
I am super new in javascript and playwright. I encountered below error when trying to run my code.
Cannot read properties of undefined (reading 'goto')
This is my code.
exports.LoginPage= class ...
0
votes
1
answer
128
views
Is there a beforeAll in Playwright that will run only once across all projects?
Running user profile actions in multiple Playwright projects causes errors. A test case that e.g. resets a password will only pass in one project and fail in the others as the reset works only once.
I ...
Tooling
0
votes
2
replies
51
views
How to write tests which analyze HTTP requests made on NextJS server side?
I work on a NextJS project with Pages Router. We are using Jest for unit tests and Playwright for E2E.
The application we are making is a funnel with several steps. Each step is a form with several ...
2
votes
0
answers
94
views
How do I run Playwright codegen with the Chromium launch argument `disable-blink-features`?
I am writing a Playwright script to automate adding end screens to YouTube videos. In order to log in to YouTube, I need to launch Chromium with the flag --disable-blink-features=AutomationControlled.
...
0
votes
0
answers
59
views
Camoufox browser window remains visible in WSL even when `headless` is set to `virtual`
Camoufox browser window remains visible in WSL even when headless is set to virtual
Description
When headless is set to "virtual", the Camoufox browser window still appears on the screen in ...
0
votes
1
answer
66
views
How can I avoid clearing test-fixtures in Shopware accepte-test-suite
I am using https://github.com/shopware/acceptance-test-suite/ to run playwright tests. Part of this is that the test suite creates test users and cleans up those after the test passed or failed.
For ...
0
votes
0
answers
108
views
Buffer not recognized in TypeScript with Playwright and module: "nodenext"
I am using TypeScript 5+ with Playwright and module: "nodenext" in my tsconfig.json:
{
// Visit https://aka.ms/tsconfig to read more about this file
"compilerOptions": {
// ...
Advice
0
votes
0
replies
169
views
How do I test Blazor Server from Playwright?
I have the following code to start up a kestrel server on a random port.
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Hosting.Server;
using Microsoft.AspNetCore.Hosting.Server....
Tooling
0
votes
0
replies
75
views
How can I collect tweets from multiple accounts (2020–2025) for research purposes?
I’m conducting a registered study on the accuracy of political pundits’ predictions, using their posts on X (Twitter) as data. The project is registered on OSF: https://osf.io/s9c3x.
I need to collect ...
Tooling
0
votes
7
replies
132
views
Robot for Websites
Hi I need to create a robot that opens a website, does the sign procedure, then open another form and fill the data before sending the data to a post command by clicking on a button.
What is the best ...
-2
votes
1
answer
102
views
Playwright - Blank white page on navigation
I am trying to automate a flow where a user navigates from one page to other. On clicking submit button, it is supposed to go to the order page but currently it is displaying the blank white page on ...
0
votes
0
answers
54
views
Headlamp e2e tests on Minikube always redirect to /c/<cluster>/login (“Something went wrong with cluster …”)
I’m running Headlamp’s e2e tests locally. The app never shows the cluster chooser and always lands on http://127.0.0.1:50883/c/test/login with a red banner: “Something went wrong with cluster test.” ...
Advice
1
vote
0
replies
66
views
Can Cloudflare be bypassed from unrendered browsers using basic techniques like setting proper headers or cookies?
I’m building a Scrapy-based crawler and facing Cloudflare protection on some sites.
Here’s my current setup:
I have a separate API service that can bypass Cloudflare by simulating a real browser (e.g....
0
votes
1
answer
235
views
Fetch data from https://www.sofascore.com/?
This is my python code using on ubuntu to try fetch and extract data from
https://www.sofascore.com/
I create this test code before using on E2 device in my plugin
# python3 -m venv venv
# source venv/...
0
votes
0
answers
49
views
GitLab CI Allure Report Shows Garbled Characters in Console Output
I'm experiencing intermittent issues with Allure reports in GitLab CI where the console log occasionally displays garbled/corrupted characters instead of readable output.
This doesn't happen ...
0
votes
0
answers
88
views
Playwright tests cannot be run in Intellij IDEA if it is extended
I want to use fixtures in my project, but when I extend test from Playwright - those tests don't have run button. I referred to the Playwright docs, took their code and just removed some lines to make ...
0
votes
1
answer
58
views
Pass env variable from playwright test script to laravel controller method
I am running a store() method in which I have to create a project using playwright tests. My playwright index.spec.ts file where I am calling create project is:
import { test } from '@playwright/test';...
0
votes
0
answers
51
views
Launching Chrome using an existing user profile in Playwright failed in macOS
Trying to launch a Chrome instance in macOS.
First experiment is working as below with a Chrome browser page showing up
import { chromium, } from 'playwright';
import { type BrowserContext, type ...
2
votes
2
answers
109
views
"headless" playwright tests fail because button click does not work
We have some Tests for our electron node.js UI. They work fine if run on our desktops (windows and linux, even on linux via SSH and local X-Server)
But the moment they run in our Jenkins pipline they ...
0
votes
0
answers
158
views
Render OWN turnstile captcha in Playwright correctly
I'm currently writing Playwright tests for a site that uses Turnstile CAPTCHA validation. On our testing systems, the CAPTCHA uses the 'always-pass' site and private keys.
The issue I'm facing is that—...
2
votes
1
answer
67
views
Scrapy Playwright freezes after initialization ([scrapy.middleware] INFO: Enabled item pipelines:[‘carscraper.pipelines.PostgreSQLPipeline’])
After starting a spider, there is the problem with freezing on a stage when pipeline must enable. There is no errors, just scrapy-playwrigth script, but it stopes on beggining before even starts ...
2
votes
0
answers
292
views
How to Load Extensions in Chrome Version 139+ using Playwright?
Earlier with the removal of --load-extension flag in the launch arguments in Chrome 137, the workaround of using --disable-features=DisableLoadExtensionCommandLineSwitch (as mentioned in question) to ...
1
vote
2
answers
164
views
How to generate bookmarks in a PDF?
I've been using Playwright to generate a document from HTML code with a table of content corresponding to the H1-6 tags I'm using. I was hoping that bookmarks in the PDF would be generated from those ...
-1
votes
1
answer
140
views
My "for loop" doesn't work in Playwright.js [closed]
I need to choose опе book without a sale. On the page, I have 9 products, and some of them have the class hasDiscount.
I need to choose the first product without the class hasDiscount. But: I need to ...
0
votes
1
answer
128
views
How to abort an entire web request if a particular dialog appeared
I am currently trying to write a Playwright script to test a JavaScript page which is intended to produce several alert boxes. Because the testing is being done for beginners who would not understand ...
0
votes
1
answer
81
views
How to safely capture both toast title and message in Playwright without waiting timeout? [closed]
I’m working with Playwright (Node.js) and need to capture notification toasts that appear on the page.
The issue is that the toasts don’t always have the same structure:
Some have only a message
...
1
vote
1
answer
147
views
mat-select option stays open after click (blur not triggered?)
I’m writing end-to-end tests with Playwright for an Angular Material 14 app.
The page has multiple mat-select.
When I interact with the dropdown manually in the browser:
I click on the select box.
A ...
2
votes
2
answers
145
views
Python script for Playwright - final page in list causes "domcontentloaded" error
I'm trying to loop through a list of URLs checking if the pages contain the words "no longer available".
I tested this out with a list of Wikipedia pages and it worked perfectly.
When I use ...
1
vote
1
answer
76
views
How do I properly track authentication across pages from pff.com Domain
I am using Playwright and logging into the main authentication page. When I go to a new page (same domain), it returns results as if I'm not authenticated. If you go to the last URL w/out ...
1
vote
0
answers
112
views
How can Playwright send the Proxy-Authorization while using Chromium?
I have a proxy server that requires a username and password to access (e.g., 127.0.0.1:8000, username: abcdef, password: 123456).
When I use Playwright to access a destination website through this ...
0
votes
1
answer
138
views
Artillery + PlayWright + Fargate: Test durations ramping up and timing out
I'm running a load test on a web application using Artillery with the Playwright engine on AWS Fargate. I'm observing a steady increase in test durations as the test progresses, and a high percentage ...
0
votes
0
answers
84
views
Intensive webview cause app's cpu drop down
I am a front-end developer and I want to monitor webview performance.
I have two scenarios:
Use deeplink to jump directly to my webview page
Use pidof MY_PACKAGE_NAME to get process id
Monitor app's ...