3,503 questions
0
votes
0
answers
13
views
Playwright flake: locator.click times out on Angular Material slide-toggle because "element is not visible"
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 ...
0
votes
1
answer
25
views
Playwright test is unable to get local issuer certificate
In my Playwright test, I want to fetch emails collected by mailpit from its API to verify that the process I triggered in the browser actually succeeds. My mailpit container is running behind a Caddy ...
-3
votes
0
answers
35
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?
0
votes
0
answers
49
views
How to handle a stale element in playwright? [closed]
I am encountering a problem with a particular testcase. I need to enter an account number then click search button and validate some things. After that I need to click on return link and clear the ...
-1
votes
0
answers
40
views
Playwright mount timeout error using React and TypeScript [closed]
Using React and Ts, I am getting: Test timeout of 30000ms exceeded. Error: page._wrapApiCall: Test timeout of 30000ms exceeded when trying to mount with :
test("renders selected date", ...
Best practices
0
votes
0
replies
30
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
50
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
36
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
56
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....
-1
votes
0
answers
33
views
long wait of BrowserContext.new_page [closed]
After running the test on playwright+ pytest, the browser opens immediately, but then the page is blank for 18-25 seconds. Based on the traces, I realized that the entire time was spent processing the ...
0
votes
1
answer
31
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
37
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
74
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
68
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 ...
-3
votes
2
answers
90
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
49
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
35
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
78
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
108
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
50
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
77
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
53
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
64
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
162
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....
-4
votes
0
answers
83
views
How do I turn off automatic screenshots in Vitest browser/Playwright?
I am using Vitest in browser mode, with Playwright as the provider. Whenever a test fails, a screenshot of the failed test is created in __screenshots__/<filename>/<test-name>. I am unsure ...
Tooling
0
votes
0
replies
70
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
128
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
73
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
50
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
0
votes
0
replies
62
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
226
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
47
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
77
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
57
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
50
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
1
answer
77
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
148
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
271
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
161
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
136
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
123
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
77
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
140
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
144
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
104
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
123
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
83
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 ...