Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [playwright]

Playwright is a framework for web testing and automation. It allows testing Chromium, Firefox and WebKit, Chrome, and Microsoft Edge with a single API. Playwright's API is similar to Puppeteer, but with cross-browser support and Python, Java, and .NET bindings, in addition to Node.js.

playwright
0 votes
0 answers
16 views

Tests run with Playwright Test for VSCode are not retried

The retries is set to 2 in playwright.config.ts as follows. import { defineConfig, devices } from '@playwright/test'; export default defineConfig({ testDir: './tests', fullyParallel: true, ...
h s's user avatar
  • 1
0 votes
1 answer
22 views

export default new TypeScript Expected 1 arguments, but got 0.ts(2554) how to fix?

Doing a QA job with PlayWright and TypeScript Trying to avoid extra imports like defaultPage = new defaultPage(page); in spec files just to reduce lines of code and make tests little more pretty. new ...
Andrei Smirnov's user avatar
2 votes
0 answers
9 views

Method `new_page` of `BrowserContext` doesn`t work as expected in `Playwright`

I use playwright with pytest. Here are content of my coftest.py file and file with tests test_keplr.py. For some reason, method new_page works as expected in fixture context_use_args_async, but fails ...
blnk.off's user avatar
0 votes
0 answers
8 views

How to resolve GLIBC version issues when running Playwright in AWS Lambda Docker image?

I am trying to create a Docker image that runs a Python script using Playwright on AWS Lambda. I started with the official AWS Lambda Python 3.8 image and added Playwright, but I am encountering GLIBC ...
NESSMA HAMIDOU's user avatar
0 votes
0 answers
18 views

Playwright Browser Launch issue

playwright._impl._errors.TargetClosedError: Browser.new_page: Target page, context or browser has been closed Been launching the chromium browser instance on my aws lambda with no issues until ...
Shriyash Sutar's user avatar
0 votes
1 answer
17 views

Playwright Sync API inside the asyncio loop

So this is my first time with Playwright so I thought to try out the examples only to find none of the work and the errors dont make sense: I have tried all the examples in the docs and on the github ...
ArchaeonSeq's user avatar
0 votes
1 answer
19 views

How do I access the browser clipboard with Playwright/C#/SpecFlow/Reqnroll?

I try to give access browser to clipboard. I found this https://playwrightsolutions.com/how-do-i-access-the-browser-clipboard-with-playwright/ but it's for playwright with typescrip, so I'm looking ...
Dan123's user avatar
  • 1
0 votes
0 answers
18 views

Playwright Cucumber with javascript- Unable to reuse the steps from another step definition file, getting Page not defined error

I am new to Playwright and I am trying to create a Cucumber Playwright POM framework. For this I have create 2 feature files userLogin.feature and bookHotel.feature. And I have 3 step definition files ...
newbee's user avatar
  • 1
0 votes
0 answers
22 views

How to capture Errors from Firefox browser console using Playwright Python

I want to capture console logs from Firefox web browser using Playwright Python and attach the same to Allure Report. I am able to fetch Warnings, Logs, Info and Debug messages from browser console, ...
Divya Andrews's user avatar
0 votes
0 answers
18 views

Is it possible to conditionally skip assertions in playwright tests?

I would like to avoid adding the same if condition with assertion in different tests. Example: if (flag === true) { expect(1+1, "Adding two ones.").toBe(2); } Is there a way to build the ...
quldude's user avatar
  • 539
0 votes
1 answer
27 views

Playwright in a Docker suddenly stopped working "Executable doesn't exist at /home/.cache/ms-playwright/chromium-1124/chrome-linux/chrome"

It was working fine up until yesterday. Full setup is Playwright in Express in a Docker container in Google Cloud Run. Preferably headful but I'd accept anything at this stage. browserType.launch: ...
ooovoflo's user avatar
-6 votes
0 answers
42 views

Playwright, selectiong option from dropdown menu [closed]

I'm just starting out doing some automation and was looking for advice on how to login to my local golf club's website so I could eventually track handicaps. I was hoping someone could advise on the ...
Alan MacGillivray's user avatar
0 votes
0 answers
24 views

What can cause Playwright to duplicate an action?

I'm writing tests for a small MERN stack blogging application as part of an online course I'm following along with. I've written a few Playwright tests for the user log in, and blog creation. However, ...
Stephen's user avatar
  • 97
0 votes
0 answers
23 views

How to dismiss file input dialog in Playwright test when using setInputFiles

I'm working on a Playwright test where I need to interact with a file input dialog. I'm using the setInputFiles function to set the input file, but I'm encountering an issue where the file input ...
Renya Karasuma's user avatar
1 vote
1 answer
30 views

How to get playwright page url

I am trying to get the current page url in python and playwright. I have tried: from playwright.sync_api import sync_playwright with sync_playwright() as p: browser = p.chromium.launch(headless=...
Ed Newman's user avatar
  • 109

15 30 50 per page
1
2 3 4 5
217