playwright-test is the official test runner of playwright and is especially made for end-to-end testing.
Questions tagged [playwright-test]
329 questions
0
votes
1 answer
How to pass value from one test block to other test block in Playwright
I am learning Playwright and trying to pass value of data from one test block to other test block in test runner. Code as follows:
let text = "some text";
let arr = [];
let num;
function data(name) {
text = name;
arr.push(text);
…

PanduHavaldar
- 1
- 1
0
votes
2 answers
0
votes
2 answers
Is there a way to clear the value attribute from input type="radio" in Playwright?
How do I literally clear the value (or turn it into null) from the following input using playwright (to make it empty, and not selected)?
From…

Daniel Cassiano Chaves
- 303
- 3
- 18
0
votes
0 answers
How to highlight page elements with Playwright Test in JScript?
Friends, I wanted that at the time of the test, every time I validate a text or insert a value in a field, the playwright highlights the yellow color. Does anyone have this feature?.
I'm using playwright with JS.

Staulik
- 19
- 1
- 5
0
votes
1 answer
Include screenshots in report test steps with playwright
Friends, does anyone have the code that allows me to include the screenshots in the line I want and make this print be attached to the standard playwright report?
I'm using playwright with javascriptenter image description here
npx plawright…

Staulik
- 19
- 1
- 5
0
votes
0 answers
Need suggestion/solution on how to 'Reuse signed in state' in my tests - playwright
I am working on a project where I am trying to achieve 'login one time to complete all my tests instead of logging in everytime for each test' I followed this document. My global setup looks exactly like how it is in the said document.
My test spec…
0
votes
3 answers
How to run a Playwright test without using the command line
I want to run a playwright test without typing npx playwright test in the command line. My hope is that I can call a playwright file from another file and have it start running without accessing the command line. Is there any way to add a playwright…
0
votes
1 answer
Is there any missing configuration while running npx playwright test
I have been working on playwright axe web accessibility test on reactjs web application, below is the code using playwright and axe. When I try running command "npx playwright axe" in terminal, it runs App.test.ts and if I provide path then it…

Abhishek Konnur
- 503
- 1
- 9
- 33
0
votes
1 answer
On the command line, npx playwright test -g "test name" gives "no tests found", but Test Explorer sees it
In VSCode, the Test Explorer can see tests. I can Run Test, Debug Test, and Go To Test. But when I try to run the same test from the command line, it says "no tests found."
% npx playwright test -g "do something neato"
Running 0 tests using 0…
0
votes
1 answer
Reuse the signed in page in multiple tests playwright
I'm new to playwright and even node.js frameworks
Currently I'm building a framework using playwright with typescript
Everything was going fine until i came to the step where i need to execute my tests sequentially using same page in th test suite…

AME
- 11
- 2
0
votes
1 answer
Playwright - how to switch to new tab and then to frame
I have below scenario -
Launch browser and do some operations
Click on a button, a new tab opens
switch to new tab.
In new tab, switch to iframe and perform
operations inside frame.
How can I handle this in playwright? Once I switch to new tab,…

sumit
- 91
- 1
- 1
- 5
0
votes
0 answers
Problems in Playwright when running a test within Microsoft login
Details:
Currently I have a problem with Playwright. A test build of a website has a normal login with username and password. This login also works in the test, but after the login another query by Microsoft Login follows. The recorder of Playwright…

Thorsten
- 1
0
votes
1 answer
Adding Owner attribute in playwright junit report
I have playwright test suite and I configured it to produce test report in junit format.
I publish the result in ADO and I want to export Owner field in pipeline test report
According to this azure devops document, I have to provide an owner…

hasan.in
- 559
- 6
- 16
0
votes
3 answers
How to fix assertion error using playwright?
I'm using playwright to do e2e testing to check if the email is exists or not, and while I run my tests its said :
"Finished test flow with status passed"
But its show me that the test is failed because i have assertion error and not because i do…

Ndor
- 19
- 7
0
votes
2 answers
Cant implement conditional code inside playwright's page object model
I'm trying to implement conditional code in playwright inside of page object. It depends on if element is found on page or not. The problem is - returned value is always the same, no matter if element is present or not. Here is my code:
…

Let 'er Rip
- 11
- 3