3,496 questions
-1
votes
0
answers
29
views
I'm unable to implement auto focus in Iframe [closed]
I'm designing custom automation report(Playwright with Java using Junit). Encountering issue where I'm unable to implement "auto focus" when I click on the scenario in the table. Focus ...
Advice
0
votes
0
replies
27
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 ...
0
votes
0
answers
60
views
One long PDF page generation [closed]
I can't calculate right height for PDF page for it to be one long page without page breaks. In result there a bit of page on second page whatever the length of HTML really is. Different JS methods ...
0
votes
0
answers
17
views
Salesforce (SFDC) Lightning: “Section” component which hosts external app using ConnectedApp shows completely blank in Playwright (works in Selenium) [closed]
I’m automating Salesforce (SFDC) UI tests. When using Playwright, one of the “Sections” hosting external app using ConnectedApp via VisualForce pag on the record page (Account or Opportunity) shows ...
-2
votes
0
answers
56
views
To Run firefox browser using launch_persistent_context of playwright python [closed]
from playwright.sync_api import sync_playwright
profile_path = r"C:\Users\kdutt\AppData\Roaming\Mozilla\Firefox\Profiles\p283dicx.default-release"
firefox_path = r"C:\Program Files\...
Advice
0
votes
1
replies
28
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
72
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
77
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 ...
0
votes
0
answers
77
views
URL Targeted web crawler [closed]
I have a bit of code I am trying to build to take a specific tumblr page and then iteratively scan by post # sequentially and check to see if a page exists. If it does it will print that full URL to ...
Tooling
0
votes
2
replies
48
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
62
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
49
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
62
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
104
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
141
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
65
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
64
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
125
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
0
answers
56
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
45
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
55
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
214
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
40
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
61
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
42
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
67
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
137
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
65
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
239
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
152
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
129
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
118
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
75
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
130
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
142
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
75
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 ...
0
votes
0
answers
94
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
111
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 ...
-4
votes
1
answer
209
views
Why is frameLocator used in Playwright to locate components within the iframe?
I want to locate a button which is in an iframe. To do so, I need to use the weird iframe notation:
page.locator('iframe[name="some_iframe_id"]').contentFrame().locator('#some_locator')
On ...
0
votes
0
answers
67
views
[Playwright]: Worker teardown timeout of 380000ms exceeded
I am using Playwright to test an electron based Theia app, I had my test implemented as follows
import { test, expect} from "@playwright/test";
import { theiaApp } from "../../../...
0
votes
1
answer
101
views
Playwright - addLocatorHandler disturbs page loading when dealing with inconsistent pop-up
I'm working on a set of tests for an e-commerce website that has two inconsistent pop-ups - cookie banner and discount banner. I handle both using page.addLocatorHandler() (https://playwright.dev/docs/...
0
votes
1
answer
167
views
How can I remove the Error Overlay that obstructs Playwright E2E test assertions
I’m running Playwright E2E tests against a Next.js 15 project. When something goes wrong in dev, Next injects an error overlay (via the element) (see image as an example). That overlay is useful in ...
1
vote
0
answers
186
views
Playwright Trace viewer stopped working after Windows 11 upgrade
I've been using Playwright Trace Viewer successfully on Windows 10, but after upgrading to Windows 11, it stopped working.
When I run the command: npx playwright show-trace <trace.zip
I get the ...
0
votes
0
answers
39
views
How to scope step definitions so that "Go to Definition" resolves correctly in VS Code?
I’m using playwright-bdd with TypeScript.
My project structure looks like this:
features/
bookATourStandalone.feature
tryUsFree.feature
tryUsFreeAppleFitnessFreeTrial.feature
step-definitions/...
3
votes
1
answer
239
views
My Playwright python script doesn't find input form fields
So I want to automate adding many team players, I wrote a script to do this with Playwright. As the players are much, the issues is that the script don't seem to find the input fields like the first ...
1
vote
1
answer
209
views
Using PyTest and Playwright, run one method before loading all the test files
This question seems to be asked a lot, but I'm not finding any answers that work, or at least that work for what I'm looking for.
The premise is simple: I have a website I need to automate testing on (...
1
vote
2
answers
109
views
Hover flyout menu doesn't pop up when testing with Playwright
I'm trying to run a test script for opening the apple.com page and click on an item on the flyout menu, but the flyout menu won't pop up when the mouse cursor is hovering over it, resulting in the ...
0
votes
1
answer
69
views
How to fail the test when percySnaphot method failed to create a snapshot?
I have a simple e2e test in Playwright:
import percySnapshot from '@percy/playwright';
import test from '@playwright/test';
const url = 'my-website.com';
test('Sample screenshot', async ({ page }) =&...