Skip to main content
Filter by
Sorted by
Tagged with
3 votes
1 answer
74 views

I am trying to add a stable data-testid to a react-select component (specifically AsyncSelect) so that I can reliably select it in my Playwright E2E tests. When I try to pass the data-testid prop ...
Abhishek Dutt's user avatar
0 votes
0 answers
45 views

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.” ...
furkancanozeer's user avatar
0 votes
0 answers
60 views

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 ...
Ivan Patiuk's user avatar
0 votes
0 answers
136 views

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—...
user27925777's user avatar
0 votes
0 answers
67 views

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 "../../../...
Merolla's user avatar
  • 315
-1 votes
2 answers
154 views

After I updated my computer with latest ubuntu, yarn and composer suddenly my playwright test --ui stopped working as it should. All buttons is hidden and input fields not showing upp, all text in ...
LittleStarJenny's user avatar
0 votes
0 answers
34 views

I am trying to configure my Playwright test suite to run a series of tests within a single browser instance. My goal is to have multiple tests in a single spec file execute continuously in the same ...
yanich's user avatar
  • 1
0 votes
0 answers
74 views

I’m facing an issue with Playwright’s expect.soft where, if a promise is not resolved, the test continues execution as expected (because of the soft assertion). But at the end of the run, instead of ...
Eswar's user avatar
  • 21
-2 votes
2 answers
287 views

I'm working with Playwright and TypeScript and have noticed that Page Object Models (POMs) always require a page parameter for initialization. Since the page object is only available from the ...
Pferdesalbe's user avatar
2 votes
1 answer
132 views

I am abstracting some common code that's been copypasted between multiple Playwright projects into a shared library that my team can use across all our test suites. Methods that return Expect ...
sehrgut's user avatar
  • 294
1 vote
1 answer
175 views

I am facing a bit of a situation. I have an electron application built with webpack for which I have written tests in the Playwright framework. Building the electron application with the following ...
Roland Tamas's user avatar
0 votes
0 answers
76 views

I am testing a developer portal. This developer portal is using microsoft MFA enforced login. I'm handling this MFA through the otpauth library. I am also using Playwright's storage state in order to ...
maxim's user avatar
  • 1
1 vote
3 answers
233 views

We use a feature‐testing approach, where each Playwright test file covers an entire feature from start to finish. In these files, I generate random data (e.g., school name, leader email) at the module ...
yasirghouri's user avatar
1 vote
1 answer
532 views

I am trying to build a python project that uses browser_use to perform tasks, and create video recording for the whole session and screenshots for each step. But I can't find a way to do it. The ...
Terry Windwalker's user avatar
1 vote
1 answer
87 views

Is there a way to exclude tests defined in setup/teardown projects from Playwright reports and test statistics — without losing their proper lifecycle execution behavior? Playwright’s dependencies and ...
טל שטרנשוס's user avatar
-2 votes
1 answer
206 views

My goal is to run tests using 2 projects. I can't provide independence between tests on both projects at the same time, so I need to run tests on one project, then on the 2nd. I tried to make npm ...
Mateusz Puczyłowski's user avatar
1 vote
0 answers
91 views

I've got Playwright installed for my electron app - and it basically looks like whenever I follow the instructions on playwright for how to launch electron - it won't let me take a screenshot. I've ...
Audrey Cole's user avatar
0 votes
1 answer
94 views

I have an Electron app that runs its backend first before opening the first window and closes the backend first before closing the app like: const { app, BrowserWindow } = require('electron'); const ...
user24995271's user avatar
0 votes
1 answer
289 views

New to writing tests in playwright with Python, I am currently attempting to uplift our current TypeScript playwright tests into Python Playwright. To begin with I have been experimenting with the ...
PersonaVeratis's user avatar
2 votes
0 answers
82 views

I'm working with a Playwright test framework in an Azure CI/CD pipeline and need to track the number of tests created over time for visualization in a Grafana dashboard. Currently, I'm using a ...
saab613's user avatar
  • 233
1 vote
3 answers
197 views

I'm unsure if I've missed something, but I need to: Check an item is visible on screen (code below which is working) Do a count on the number of visible items on screen Originally I was doing: test(...
Carl Bruiners's user avatar
1 vote
1 answer
288 views

I have a spec file that has a test: test.describe('mobile', () => { test.beforeEach(async ({ page }) => { await page.goto(url); }); test('Mobile check - (Optimal on desktop / tablet)...
Carl Bruiners's user avatar
0 votes
1 answer
152 views

I want when executing the following command: playwright codegen demo.playwright.dev/todomvc I open the browser with the arguments of --disable-web-security --user-data-dir=“...”. Can this be done? I ...
Felipe Sanguino's user avatar
0 votes
1 answer
342 views

My Playwright test is running fine in debug and normal mode when I ran on local, but when I've tried the same through GitHub Actions it's hung to launch the application. My login involves Microsoft ...
Prosenjit Mukherjee's user avatar
0 votes
0 answers
27 views

I am new to playwright (Automation tool). Scenario: Need to connect to Vertica DB, fetch required record and compare the result with UI values. I am using following Javascript through which I am able ...
MIM's user avatar
  • 529
0 votes
1 answer
578 views

I'm a bit of a Playwright noob, and I have a problem getting my Python scripts to run using the latest version of Firefox. Any .py script I run will open in version 95.0. Same thing if I run ...
Generico's user avatar
0 votes
0 answers
67 views

We use featureFlag values set in projects of playwright.config, for each test folder. This one project is injecting wrong future flag value (expected value is false but we get the error message that ...
Mici's user avatar
  • 1
1 vote
1 answer
111 views

I have the following playwright setup // playwright.config.ts export const STORAGE_STATE = 'tests/e2e/storageState.json'; ... projects: [ { name: 'Log into Wordpress', testDir: './...
Иван Харалампиев's user avatar
0 votes
1 answer
185 views

I have a playwright project that has many sub folders under the tests folder, for example a, b, and c. In a specific scenario on one of my pipelines I need to exclude the folder c using Playwright CLI....
I.sh.'s user avatar
  • 2,473
1 vote
0 answers
182 views

Background: I have a chromium user-data folder which contains a logged-in Instagram account. I want playwright to launch using persistent context from the user-data folder, open Instagram, and take a ...
Asmit Karmakar's user avatar
0 votes
1 answer
131 views

I got some trouble while I tried to safe a JWT in local storage, which is then used in all tests. The JWT is used to be send with each action on the page. I read the docs, but the problems can not be ...
Pferdesalbe's user avatar
2 votes
1 answer
94 views

I have a very specific issue where the icons for starting and stopping tests are shifting depending on when file was created: In example above, you can see that in example.spec.ts, the icons are on ...
Joccahontas's user avatar
-1 votes
1 answer
155 views

I've a question on sharing the object between tests when a particular test fails. From the below code, when the "Check Bank account status" fails, PW is unable to successfully run other ...
Ram's user avatar
  • 443
0 votes
1 answer
294 views

This is my custom fixture which I create for tests: export const test = base.extend<TestOptions>({ customFixture: [async ({ page, request }, use, testInfo: TestInfo) => { if(testInfo....
Davit Ebralidze's user avatar
1 vote
1 answer
216 views

I am trying to perform some API testing with Playwright. I have what I thought was a neat solution for handling different users, but now I am not so sure. For each user, I have a fixture: import { ...
SphinxMan's user avatar
  • 3,744
1 vote
0 answers
119 views

Is it possible to conditionally assign tests to workers somehow? As an example, I might have 10 tests: 5x that require authentication 5x that do do not require authentication My project is ...
Hoppjerka's user avatar
  • 236
0 votes
0 answers
279 views

In my webpage, How do I add a test to open the File Explorer and select a file? I need to use this file to run my playwright tests. I am using Playwright c# with Page Object Model. I tried: private ...
Anil Eapen's user avatar
0 votes
1 answer
649 views

I am looking to run playwright tests (Javascript) using multiple workers in a CI env (I use AWS Batch). My playwright.config.js file looks like this. export default defineConfig({ testDir: './...
Sriram Muthuswamy's user avatar
0 votes
1 answer
296 views

Absolute novice to Playwright with minimal async experience. Running the below code ends up creating multiple screen shots (usually between 8-9.) I understand this is due to the tests running in ...
forcequitIO's user avatar
0 votes
0 answers
80 views

I have a React component ( Next JS ) : "use client" import { getEnv } from "@/actions/env" import Layers from "@/features/solar-analytics/panel-installation/map/components/...
Ala Eddine Menai's user avatar
6 votes
1 answer
5k views

I am using Playwright for testing a web application running in an internal test environment where the server is using a TLS/SSL certificate issued by a custom certificate authority (CA). Playwright ...
mwopitz's user avatar
  • 720
5 votes
1 answer
437 views

I'm interested in trying Component Testing with playwright. Because of my setup, I cannot use the playwright test runner, so I'd like to produce a Node executable that I can just run. For regular (non ...
Juan Enrique Muñoz Zolotoochin's user avatar
2 votes
3 answers
2k views

In Cypress this is easy because I can use .and and I can chain 2 assertion: checkFields() { this.heading().should('be.visible').and('contain.text', 'test') } But in Playwright I get the error: ...
Tomas's user avatar
  • 55
0 votes
1 answer
187 views

I'm new to automation testing and using playwright. I'm trying to just verify that when I click the print button from my dialog popup. The correct report launches. Everything I have tried is giving me ...
Jen's user avatar
  • 9
0 votes
0 answers
641 views

I have a component using Popover from shadcn/ui. When I try to testing it with Playwright the locator can´t found the id into the Input. I am using React ts. This is a fragment from my component: <...
Francisco Estepa Guerra's user avatar
0 votes
1 answer
159 views

I noticed that Playwright documentation advises against using serial mode, stating that it is generally better to keep tests isolated so they can run independently. If serial mode is not recommended, ...
Srikanth Athikari's user avatar
0 votes
0 answers
262 views

I am trying to create some PDF generator service. For that I would like to use Playwright. I create some test to see is it working, but I got the following error: Executable doesn't exist at C:\Users\...
Wasyster's user avatar
  • 2,583
0 votes
1 answer
109 views

When I used ; then it is giving error- Error: No tests found. Make sure that arguments are regular expressions matching test files. You may need to escape symbols like "$" or "*" ...
Irshad Telsang's user avatar
0 votes
0 answers
204 views

There are many talks around using multiple workers in playwright when automating a web application. I've a requirement where I am trying to use X workers for my UI automation. The application is ...
Ram's user avatar
  • 443
-2 votes
1 answer
482 views

I have a setup where I can do unit tests with playwright. The setup is (just the important files) ~/folder: ls sum.js tests/foo.spec.js sum.js function sum(a, b) { return a + b*2; } foo.spec.js ...
jerik's user avatar
  • 5,797

1
2 3 4 5
11