Questions tagged [playwright]

Playwright is a library to automate Chromium, WebKit and Firefox with a single API. Playwright is similar to Puppeteer, but with cross-browser support and Python, Java, and .NET bindings, in addition to Node.js.

Resources

2380 questions
0
votes
1 answer

how to uncheck few checkboxes from already checked list of checkboxes in javascript/playwright

Im new to Javascript/Playwright, I have a scenario where I want to uncheck few checkboxes( e.g 1,3,5 8 checkboxes ) from already pre-selected checkbox list(10 checkboxes) I tried to uncheck all checkboxes and check only required, this approach is…
0
votes
2 answers

SyntaxError: Cannot use import statement outside a module (@cucumber/cucumber) - Node.JS, Playwright and Cucucmber

I have the following error when I try and compile my ECMAScript 6 compliant Node.js code: $ npx cucumber-js --require features/step_definitions/steps.ts --exit import { Before, Given, When, Then } from "@cucumber/cucumber"; ^^^^^^ SyntaxError:…
Raisus
  • 148
  • 3
  • 23
0
votes
1 answer

ImportError while importing test module

When I run my Playwright test, I get the following error: ImportError while importing test module 'C:\Users\fsdam\OneDrive\Documents\python_work\playwright-python-tutorial\tests\test_search.py'. Hint: make sure your test modules/packages have valid…
fdama
  • 194
  • 3
  • 6
  • 15
0
votes
0 answers

Language settings for .runnssettings in Palywright

how can I set language settings in .runnsettings with C#? I tried to do it with BrowserContext. It doesn't work. 4 ClassLevel
0
votes
0 answers

My Specflow Playwright test step is switching to next step before completing first step method during debugging

I am writing a specflow+playwright+xunit test framework where my test step in feature file is like below. Given I launch web app And I entered and and click submit When I select x radio for option for second step the…
shashank shekhar
  • 155
  • 3
  • 16
0
votes
0 answers

Webscraping code using asyncio is freezing. Script is not stopping nor returning an exception

I am building a webscraper using asyncio and Playwright. I am running into issues that I do not know how to debug as I really do not understand what is going on, so not sure where to start from. I have OVERLYsimplified my code here so you guys can…
0
votes
0 answers

Playwright handling authentication with multiple workers

Running into a small problem, or maybe a question about the best way to handle this. Playwright touches on authentication some here: https://playwright.dev/docs/auth Currently im testing against a pretty old ASP.net app that uses a microservice…
msmith1114
  • 2,717
  • 3
  • 33
  • 84
0
votes
1 answer

Monitor playwright tabs in real time

I'm making a code using the playwright library, I would like the script to open several files from a list (pandas). But I want to limit the amount of open files at a time. These files are opened in different tabs in the browser. for row in…
Avestruz
  • 27
  • 4
0
votes
0 answers

grantpermissions option is not working in safari browser in mac. is there any alternative for granting camera and microphone?

I have tried to grant camera and microphone access using play wright . the code I used is ... await context.grantPermissions(['camera', 'microphone']); but it is not working. Unknown permission camera is displayed. Is there any way to allow…
0
votes
1 answer

How to create a UI interface to trigger playwright test?

I have been given the task of creating a UI interface with a button that triggers a Playwright test. The interface should also be able to pass parameters, such as the URL or browser type. I have imported my test function using an API, and it is…
Doraemon
  • 439
  • 1
  • 6
  • 17
0
votes
0 answers

playwright handle JS initiated request and retrieve the response for scraping

The overall goal is to use Playwright for Python, to scrape a web page. However, web page has some dynamically rendered info, like the Google Map. And I need to be able to get the longitude and latitude from it. I'm not sure how to retrieve it from…
Ilija
  • 1,556
  • 1
  • 9
  • 12
0
votes
0 answers

Error: failed to find frame for selector - Playwright 1.30.0

peeps! I'm trying to iterate through table inside an iframe to get all the rows (tr) and then get the first cell (td) of each row. The problem is when running my script an error is displayed. It looks like as there aren't table rows. I really need…
0
votes
2 answers

Multiple Awaits necessary for async function? (Javascript/Playwright)

Im pretty new to using the await keyword, I am used to the older "Promise" like commands used in Cypress. However one confusion I have is when a function returns a promise, but there is both an await keyword IN the function and when using the…
msmith1114
  • 2,717
  • 3
  • 33
  • 84
0
votes
0 answers

Trouble downloading playwright for python

I'm following this tutorial: https://github.com/elebumm/RedditVideoMakerBot And I'm encountering this issue: ERROR: Could not find a version that satisfies the requirement playwright==1.23.0 (from versions: none) ERROR: No matching distribution…
Romo
  • 1
0
votes
1 answer

C# PlayWright - Getting the value of element /dt and /dd inside div

I have below structure.:
Employee Name
Sam
Employer Name
ZenS
I…
born2Learn
  • 1,253
  • 5
  • 14
  • 25