Questions tagged [playwright]
Playwright is a Node.js library to automate Chromium, Firefox, and WebKit with a single API.
26 questions
0
votes
0
answers
11
views
C# Reqnroll test - BeforeTestRun hook not firing correctly
I've got a C# framework using Playwright.NET and Reqnroll (formerly SpecFlow).
I've moved common steps across multiple projects into a separate project within the same solution to enable easy reuse.
I'...
0
votes
0
answers
21
views
Playwright returning random timeout errors while running on GitHub pipeline
When I run my Playwright tests locally, they all pass. However, when I push the changes to my branch, the GitHub pipeline jobs triggered by my Pull Request encounter issues, and I’m unsure what’s ...
0
votes
1
answer
30
views
Optimizing long-running playwright test
I have just completed my first two playwright tests, but I am not sure how to optimize them.
The scenario is the following:
I log in to the system with an administrative user.
I create a new user and ...
0
votes
0
answers
113
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
52
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
328
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
0
answers
38
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
1
answer
1k
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 { ...
0
votes
0
answers
736
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[] ...
0
votes
0
answers
28
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
475
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
1
answer
168
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
1
answer
423
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 ...
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
1
answer
118
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 ...
1
vote
0
answers
672
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
2k
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 ...
1
vote
1
answer
152
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 ...
1
vote
1
answer
721
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
7k
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 ...
4
votes
1
answer
10k
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 ...
2
votes
2
answers
14k
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 ...
4
votes
1
answer
13k
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
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 ...
3
votes
1
answer
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 ...