Questions tagged [playwright]

Playwright is a Node.js library to automate Chromium, Firefox, and WebKit with a single API.

Filter by
Sorted by
Tagged with
0 votes
0 answers
4 views

Auto suggestions missing for built in locators like goto, click, fill in Playwright Javascript

I am doing playwright java script automation using POM cucumber BDD framework. I initiated page object in Hooks file. If I want to access that page object in another methods in the same file it is not ...
Meera Yogesh's user avatar
0 votes
2 answers
19 views

How to handle the dialog "Allow site to store data in persistent storage?" in Firefox using Playwright?

I would like to handle this popping out dialog in Firefox browser and allow storing data in persistent storage in Playwright's E2E tests. Currently, this lack of permission interrupts my tests. How ...
kosteklvp's user avatar
  • 101
0 votes
1 answer
74 views

Recommendations for a beginner using Playwright in C# for Blazer app

I'm new to test automation and do not have a coding background. I need to create tests using Playwright in C# for a Blazer app. Can anyone recommend good resources to help me get started?
JamesM's user avatar
  • 1
1 vote
2 answers
98 views

Playwright: expect.toHaveAttribute: Unsupported token "@xpath" while parsing selector

In Playwright I created a script to verify the title using toHaveAttribute assertion for this element: <title style="" xpath="1">Unient | Your Versatile Partner for Better ...
Sarah G's user avatar
  • 11
-1 votes
1 answer
90 views

Playwright File layout

New to QA and Playwright. Related to styling and file naming conventions: Say you have complex software with multiple endpoints that you are writing automated tests for. How would you organize your ...
Mish's user avatar
  • 1
0 votes
0 answers
83 views

Unable to send CSV data as part of payload (Playwright API with C#)

I am using Playwright with C# and I need to send a POST request. Since I need to include a CSV data file in the payload, I am using multipart encoding, but have not had much luck so far. The CSV ...
ToastMan's user avatar
  • 380
0 votes
4 answers
263 views

Playwright vs Selenium

I have used Selenium for several years to automate UI tests, one of our new devOps guys used to be a QA and he introduced me to Playwright recently. On the surface it seems like Playwright solves a ...
clarkcoulam's user avatar
0 votes
1 answer
55 views

Will Selenium Webdriver become less popular in coming years? [closed]

Lot of Automation engineers have shifted to new Web automation tools like Cypress, WebDriverIO, Pupeeter, Playwritght, Katalon Studio, AI tools like Testium, Functionize etc and i am still working on ...
jimmy234's user avatar
1 vote
1 answer
215 views

How can I run test cases implementing Pytest, Playwright and Gherkin Features with Python?

I'm doing an end-to-end test automation project in which I simply login to a specific page. To do this, I use Python 3.10, Pytest, Playwright and Allure to report. In my implementation file of my ...
VSacudato's user avatar
0 votes
3 answers
364 views

Is there any way to import postman collection into playwright?

Details: We have several thousand APIs in various postman collection. Our customer wants to have them customized accordingly, towards E-2-E testing. The customer would like to use Playwright for ...
Mornon's user avatar
  • 1,107
1 vote
2 answers
103 views

Test users password- static or dynamic

During our e2e testing, 100+ test users are created on our application. Workflow goes like this: 1. Generating a random password with faker library 2. Storing it in a variable 3. Using the variable to ...
mark_Ruff's user avatar
0 votes
0 answers
300 views

Playwright c# - Can't interact with elements from new opened tab

I click a link on a web page, and then a new tab is opened. I need to click some buttons on this new tab, but I can't do it because these elements aren't found. I found this solution in Playwright ...
Julia's user avatar
  • 1
1 vote
1 answer
425 views

selecting correct row and click checkbox

I'm new to playwright and not sure how to approach this issue. I have a table with data, and the first column of each row has a checkbox. I want to be able to select the correct row to click the ...
Machtyn's user avatar
  • 111
2 votes
2 answers
845 views

Passing the UI data from one test to another

I work with Playwright, Mocha and Chai. In the application that I am currently testing I need to automate the following scenario. When a user logs into the application a dashboard with assigned list ...
Automation_Padawan's user avatar
1 vote
2 answers
4k views

Playwright: Using ReqExp inside of the URL while trying to check PUT request via page.waitForResponse()

Currently in one of my test I am trying to check PUT request status. In one of the user scenarios when a user clicks Confirm button a PUT request is sent and if all good status code 200 is present in ...
Automation_Padawan's user avatar
3 votes
1 answer
5k views

Playwright: Working with Bootstrap modal dialogs/popups

So I have been facing some issue with some of my tests which require a user to Confirm or Cancel a Bootstrap modal dialogs/popups windows. It seems that each time when I try to interact with a Confirm ...
Automation_Padawan's user avatar
2 votes
2 answers
11k views

Playwright: Creating and interacting with a list of elements on the page

This might be a simple question, however I would like to know if there is a simple way of declaring a list of elements which later on you will be working on for example looping through it and looking ...
Automation_Padawan's user avatar
4 votes
1 answer
9k views

Playwright: Printing Console Logs each time when one of the test fails

I am working with Playwright, Mocha and Chai for my automation project and I was wondering if there is a way for capturing all console logs that appear during a failed automation test execution. ...
Automation_Padawan's user avatar
1 vote
1 answer
982 views

Playwright: Executing different test suites depending on script parameter

I have switched to Playwright recently and I would like to ask you for some feedback on my current issue which I am facing at the moment. I have a simple framework set up for one of our company ...
Automation_Padawan's user avatar
2 votes
2 answers
5k views

Playwright: Storing an element selector in variable

This might be a trivial question/answer, however I would like to know if there is a way that I could store an element locator in a variable and then reuse it same as it while working with Selenium and ...
Automation_Padawan's user avatar