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
1 answer
950 views

Playwright - Target Closed before any action

I am trying playwright and try to automate login feature. I have page classes, test classes and separate action class to write common actions like click,enter inputs. My common action class import { ...
1 vote
1 answer
155 views

NET::ERR_CERT_AUTHORITY_INVALID while recording from playwright

While I'm trying to record the web based application using Playwright tool and after launching the application getting as NET::ERR_CERT_AUTHORITY_INVALID . After recording and in the playwright tool ...
0 votes
1 answer
402 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 ...
0 votes
0 answers
88 views

How to execute Playwright .NET tests in Azure pipeline (Linux agent) in headed mode?

As per Playwright .NET documentation, to run tests in Azure Pipelines using headed mode, you need to specify xvfb-run before dotnet test if using a Linux agent. However, in terms of the YAML ...
0 votes
0 answers
31 views

How to keep "--disable-web-security" for some testcases and for others skip "--disable-web-security"

@BeforeMethod public void setUpPlaywright(ITestResult testData) { String[] chromiumArgs = { "--disable-web-security", "--no-sandbox", "--ignore-...
1 vote
2 answers
364 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 ...
0 votes
1 answer
387 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?
0 votes
0 answers
32 views

Playwright Not Automated

I am trying to automate a task with playwright and realized that the task won't automate unless my mouse is over the open browser. Is this normal or is there some sort of paradigm I'm following? The ...
0 votes
2 answers
147 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 ...
1 vote
4 answers
1k 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 ...
0 votes
0 answers
605 views

How to set --disable-web-security in PlayWright - Java

Is there any possibility to pass "--disable-web-security" parameter when opening a new web page, as we do in selenium. Edit: I was able to get it done by below code String[] ...
1 vote
3 answers
1k 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 ...
0 votes
0 answers
177 views

Playwright Webkit encountered an internal error

I installed playwright using npm init playwright@latest then I ran npx playwright test but I got this error: 1) [webkit] › example.spec.js:4:1 › has title ─────────────────────────────────────────────...
0 votes
0 answers
22 views

Does Playwright offer clickable test suite that anybody can run through a dashboard page?

We need to implement automated E2E testing that would allow anybody on the team to visit the dashboard page and review test run reports and at the same time initiate new tests with a button click. Is ...
0 votes
1 answer
334 views

Page Object Model - Locators as functions vs constructor?

When creating a Page Object Model class (In this case i'll use JavaScript/TypeScript example) I see 2 typical ways of doing locators. Typically either something like this: export class LoginPage { ...
0 votes
0 answers
52 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 ...
4 votes
1 answer
12k 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. ...
1 vote
1 answer
591 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 ...
1 vote
2 answers
144 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 ...
0 votes
1 answer
105 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 ...
2 votes
2 answers
6k 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 ...
3 votes
1 answer
9k 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 ...
1 vote
1 answer
674 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 ...
2 votes
2 answers
1k 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 ...
2 votes
2 answers
8k 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 ...
1 vote
1 answer
1k 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 ...
2 votes
2 answers
13k 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 ...