Skip to main content
Filter by
Sorted by
Tagged with
Best practices
0 votes
3 replies
34 views

I’m working on automating UI tests for form validations, and I’ve noticed that validation messages can differ across browsers (Chrome, Firefox, Safari), as well as between headed and headless modes, ...
Shivali Goyal's user avatar
0 votes
0 answers
15 views

I created a custom Xray reporter that generates JUnit XML test reports. I want to upload these reports to Xray Cloud and link tests to Jira issues using the testKey property inside each <testcase&...
linda stephen's user avatar
0 votes
0 answers
95 views

Allure reports from Playwright tests do not include actions taken outside of step() calls. For example, step( "Menu navigation", () -> { page.locator("a").filter(...
Petersaber's user avatar
0 votes
1 answer
280 views

I am using the below command to start playwright server: npx playwright launch-server --browser "chromium" but it is headless. How to run it in headful mode? I also used the below command, ...
Bhanu's user avatar
  • 1
1 vote
1 answer
86 views

I've been evaluating playwright-java for a while and I've encountered an issue with regard to onResponse handler. It's simply not getting called. Documentation doesn't mention any special setup for it,...
Kamil Horvát's user avatar
2 votes
0 answers
312 views

I trying to download a file into a folder that is not in the list of managed permissions of Playwright. The reason I need to test this particular download is because I am dealing with a websockets ...
Alan Barrientos's user avatar
0 votes
1 answer
122 views

I'm facing the testing of Android app (in my case with an emulated device that I already have installed on my PC) I was looking to implement it using Java Playwright. But in their official doc, they ...
AutomationNeeded's user avatar
1 vote
0 answers
219 views

I have a spring boot app running in docker which have playwright code for retrieving data from some websites. In the old form of my app arch I had my spring boot app running with selenium driver and ...
user2145673's user avatar
2 votes
0 answers
1k views

I'm running a lot of UI tests in a pipeline via a GitLab Runner. The test are run on VMs in the GCP in docker containers. Most of the time this works without problems, but sporadically a job running ...
Macariel's user avatar
1 vote
0 answers
76 views

I'm experiencing very weird exception while using the playwright library in java. I haven't found any information whatsoever about that exception happening in any playwright methods. This is the ...
Ben TFs's user avatar
  • 11
0 votes
1 answer
770 views

I am new to playwright and can someone help me how to resolve this error? This is the browser initiation method in base test public void initBrowser() { playwright = Playwright.create(); ...
Prasa's user avatar
  • 15
1 vote
3 answers
1k views

I'm using playwright-java for a few months now and suddenly I got the following error: node:internal/modules/cjs/loader:1225 const err = new Error(message); ^ Error: Cannot find ...
Barak Bensimhon's user avatar
0 votes
0 answers
75 views

I am trying to run this test and while the feature file runs. I get no tests found when using this runner class. I know the feature file and steps work since that passes but this runner does not find ...
Jade Rock's user avatar
1 vote
0 answers
267 views

Am sharing the snippet which i used, able to open chrome browser but not opening in incognito window. My requirement is application under testing url must open in incognito window, complete the ...
sampath's user avatar
  • 63
1 vote
1 answer
2k views

I work as solo QA in my company and recently I started working on Playwright for test automation. After I completing each test i would run it few times just to make sure everything is working and that ...
Igor Korpak's user avatar
0 votes
2 answers
2k views

I'm using Playwright to analyze data from a remote site. However, at the first call to page.goto(URL) # Initial URL the server pops up a panel, as far as I can tell before any Javascript runs: So ...
fearless_fool's user avatar
1 vote
1 answer
241 views

I use spring-boot-maven-plugin to build docker images. Under the hood, this uses buildpacks (paketo). My knowledge around buildpacks is very limited. The problem is a new requirement: we will use the ...
Alkis Mavridis's user avatar
2 votes
0 answers
159 views

I have established the connection to the remote selenium greed, using SELENIUM_REMOTE_URL system environment. In this case Playwright sees this env and starts test remotelly by himself, I mean I don't ...
hhrzc's user avatar
  • 2,093
1 vote
0 answers
302 views

This is the Java code that is used: public void waitForOrReload(Page page, Locator locator) { try { debug("waitForOrReload"); locator.waitFor(new Locator.WaitForOptions()....
marnik's user avatar
  • 21
1 vote
1 answer
209 views

I am using Playwright in combination with Cucumber. All of my tests are ran in parallel through maven surefire with the JUnit 5 test runner. The issue I am having is that I have been unable to enforce ...
Daniel Phillips's user avatar
1 vote
0 answers
66 views

I'm trying to take all the colors of a product, but first I have to click on a button to show all the available ones. When I do it, sometimes it is successful, other times it just brings me the ...
Franco Romero's user avatar
0 votes
0 answers
500 views

I am using playwright java lib 1.44 version. I am setting proxy url, username & password in Proxy object provided in launch options. But some how apache traffic proxy server is not able to ...
Yoda's user avatar
  • 99
0 votes
0 answers
295 views

I'm currently working on a project that is extending the Playwright Java library. I need to interact with a remote service that injects custom parameters into the WebSocket communication between ...
Shubham Garg's user avatar
0 votes
1 answer
593 views

I am working on file downloading functionality with Playwright and Selenium Grid (in Java). Through Selenium Grid VNC, I see that the file is downloaded on my node machine. Now I want to move the file ...
Rohit Tater's user avatar
1 vote
2 answers
178 views

I am currently trying to implement the addLocatorHandler from Playwright. However, with my current code, the iFrame is never found. Example code: @BeforeClass public void locatorHandlerTest() { ...
Timo Güntner's user avatar
3 votes
1 answer
7k views

I'm getting an error that reads "UNABLE_TO_GET_ISSUER_CERT_LOCALLY" (entire stack trace pasted below) while I'm trying to run a simple playwright code written in Java (code pasted below). I'...
user avatar
0 votes
1 answer
178 views

I am doing a web automation project using NodeJS with Playwright. The project is to scrape the links and open it in new tabs and save the PDFs. I reached the last part of saving the PDFs and I am ...
Akhil Kumar's user avatar
0 votes
1 answer
607 views

I tried this but it's not opening a browser. Path userDataDir = Path.of("myPath"); BrowserContext BrowserContext = playwright.chromium().launchPersistentContext(userDataDir); page = ...
ShawnG's user avatar
  • 11
0 votes
0 answers
1k views

I am using page.waitForUrl method to wait for desired url. After clicking the submit button, I am trying to wait for url using page.waitForURL("/my-test-url/v1/foo/") but getting time out ...
Yoda's user avatar
  • 99
0 votes
1 answer
6k views

I am automating UI using PlayWright and Java. I have a search box in the iFrame. When I enter the text in it, I get the tool tip: Search for <number_entered> by. However, when I enter the number ...
Zeus's user avatar
  • 216
0 votes
1 answer
741 views

How to handle multiple tabs using Playwright Java & POM and interact with elements inside the new tab? I am using PageBase class and here is the basic content of it public class PageBase { ...
Yahia Hisham's user avatar
0 votes
0 answers
87 views

I am new to Playwright and cucumber. I have setup a simple project where I am taking a screenshot of the Home Page when login is successful on a website. Screenshot is getting generated in ...
Abhi06's user avatar
  • 21
0 votes
0 answers
173 views

I am using #playwright-java , learning by doing, first time user. I have been attracted by the ease of use seen in the demos. However, when facing a complex website it turns out it needs more trial&...
Jerome_B's user avatar
  • 1,097
0 votes
2 answers
325 views

I am trying to select a value from an Angular dropdown using Playwright-Java. It is failing due to multiple values found. How to uniquely identify by text. getPage().locator(obj).click(); ...
rajesh k's user avatar
3 votes
0 answers
1k views

I am making an automation with playwright in Java. You will log in to accounts by going to an e-commerce site. A process repeated many times. With Chromium, by setting the --disable-blink-features=...
CekaSoft's user avatar
0 votes
1 answer
108 views

Let's say I have a popup which has 3 fields and I have dataproviders where I provide different combinations (positive and negative) of values to fill out the popup. There is also a boolean which ...
L. Measy's user avatar
0 votes
1 answer
379 views

I am expecting one locator to have to value Individual. But it is taking slight delay in getting value .. I saw this in Typescript.. const locator = page.locator('my locator') await expect(locator)....
ChanGan's user avatar
  • 4,328
-1 votes
1 answer
139 views

I now have a large number of tests that I don't want to run all in parallel, but only a certain number that has yet to be determined. How do I set this in Playwright Java?
Michael S.'s user avatar
0 votes
1 answer
2k views

I open page and waiting until data is loaded to displayed rows. In selenium it works like this: private final String dataRowXpath = "*//div[@ref='eCenterContainer']//div[@role='row']"; ...
kris82pl's user avatar
  • 1,159
0 votes
0 answers
197 views

Playwright /Typescript: Unable to retrieve the Cell data from table: I have a table with 10 columns and nth number of rows, each cell has different locators, my expectation is retrieve full row data ...
Raghavendra's user avatar
-1 votes
1 answer
162 views

I am writing a test with Playwright, for a java application setting attributes in the user httpsession, to be shared across different pages. The test opens the app in one page, adds an attribute to ...
Majuj's user avatar
  • 179
3 votes
1 answer
2k views

Assuming that Playwright server is the solution to Run Playwright Tests on unsupported Linux distributions, I want to run my Java test against a Playwright server (which is running using an official ...
jfrantzius's user avatar
0 votes
0 answers
362 views

So I have spent my day banging my head against a wall trying to figure this out. What I have is a set of tests, a subset of which have to be run in 2 browsers, but the rest only need to be run in one(...
Dan Walker's user avatar
0 votes
0 answers
40 views

My goal is to have this tag in the XML generated by surefire: <testcase name="NameMyTest"> For this, I used the line @DisplayName("NameMyTest") in my Playwright Java test ...
Michael S.'s user avatar
0 votes
0 answers
123 views

At our client, they have an eCommerce website made of node.js, vue.js etc., which implements their SAP (ERP) backed processes. Customers use both desktop and mobile devices to create orders. WorkSoft ...
user avatar
2 votes
0 answers
338 views

I have a spring app that runs with the following dockerfile (used for Tilt locally): FROM amazoncorretto:21-alpine-jdk AS builder # Install "entr" package using apk package manager RUN apk ...
Liron Tal's user avatar
0 votes
0 answers
119 views

I am getting this below exception when I run pipeline on azure ado and automation tool is playwright > Task :testJsonConfig [gradle]: java.lang.RuntimeException: Failed to create driver [gradle]: ...
Summit Kumar's user avatar
0 votes
0 answers
864 views

I get below issue in a company owned Jenkins Server when I tried to build Playwright Java code which runs via chromium bowser in BrowserStack. java.lang.RuntimeException: Failed to create driver ...
Sameera De Silva's user avatar
0 votes
1 answer
267 views

My Playwright test is in a Junit5 tests. What I am trying to achieve is that, if there is any assertion on my test (basically if the test fails), save the .har file, otherwise discard it. @Test ...
andrei's user avatar
  • 1
0 votes
1 answer
2k views

I am experiencing an issue with Maven's Surefire plugin in my test automation project. When I run individual test classes using mvn test -Dtest=TestClass, it works fine. However, executing my test ...
Pogryziony's user avatar