Questions tagged [playwright-java]

For questions about the Playwright API for Java. This tag should be used in conjunction with the [playwright] tag.

83 questions
0
votes
0 answers

Playwright Integration with Selenium GRID not working. Socket gang up Error is returning

Playwright Integration with Selenium GRID not working. Socket gang up Error is returning. Tried with Playwright and Selenium Latest versions and older versions. Playwright should connect with Selenium Grid for Remote execution.
0
votes
1 answer

How can I locate a link that is a child of the following sibling?

I have to colour an element after the selection, the element which i would like to colour is found as a child of the following sibling. I have successfully located the element using the following code page.getByRole(AriaRole.COMBOBOX, new…
Rajagopalan
  • 5,465
  • 2
  • 11
  • 29
0
votes
1 answer

Playwright: How to handle long-loading ads preventing DOMContentLoaded event from firing during page navigation?

I'm using Playwright Java version 1.28.1 to test my company's website. I'm trying to navigate to the website using the following code: page.waitForLoadState(LoadState.DOMCONTENTLOADED); page.navigate("https://my-company-website.com/"); The problem…
Aniket
  • 4,926
  • 12
  • 41
  • 54
0
votes
1 answer

com.microsoft.playwright.PlaywrightException: Host system is missing dependencies to run browsers

I have a quarkus servicewhich use the Playwright library for Java for web scraping tasks. On my windows host everything works fine when running the service on localhost, but when i run it on a openjdk:17.0.1-jdk-slim docker image for deployment, i…
Furious Gamer
  • 359
  • 1
  • 3
  • 16
0
votes
1 answer

@Step is not reported

I'm new to Allure, I work with playwright + jave, I'm trying to add steps to the report, but it seems that @Step Anotation is not reported in the allure test report, I added to the pom:
Dassy
  • 9
  • 3
0
votes
1 answer

Run Spring Boot application using Playwright Java in Docker container

I have a Spring Boot application where I use Playwright Java in. I can get it to work when I running it locally on my Windows machine but when I try to run in a docker container I get the following error: Host system is missing dependencies to run…
user982455
  • 11
  • 3
0
votes
0 answers

Is it playwright in Java language have option for remote debugging port?

If we looked back to ChromeOption in Selenium WebDriver : ChromeOptions chromeOptions = new ChromeOptions(); chromeOptions.setBinary("C:\\Program Files…
0
votes
1 answer

Playwright - URL is not loading sometimes

when I start the test, the browser is opened but it does not load the URL. After 10-15 seconds it stopped to load (see screenshot). I had updated intelliJ, updated playwright to version 1.28.1 (doesn't help) It happened 7 out of 10 trials. Any idea…
0
votes
1 answer

Page reuse Playwright Java for PowerApps Testing

I want to reuse a page using Playwright with Java so I speed up the running of tests. I use a persistent context because of the login requirements on the project - organisation page and MFA. I tried implementing something similar to…
gabo
  • 5
  • 4
0
votes
0 answers

How to perform cross browser testing in playwright using java

I have checked many websites for cross browser testing in playwright using java as client binding ,but i didn’t got any solution. Solution for cross browser testing in playwright with java
VINAY M
  • 3
  • 2
0
votes
1 answer

AddCookies in browserContext in Playwright Java

I am trying to add cookies in playwright Java using browser Context in the playwright below is the code i am using getURL(URL); List ls = new ArrayList(); ls.add(new Cookie("JESSIONID",val)); …
0
votes
0 answers

PlayWright parametrising spec files in a test folder

I have a test folder that looks like this: I am looking for a way where I can tell playwright to run specific spec files say 1A, 3A and 7A parallel or in order. I have created one Appointment folder under the tests folder to keep all spec files…
mangesh
  • 21
  • 1
  • 8
0
votes
0 answers

Java Playwright with MutationObserver for HTML DOM manipulation

I have a requirement in QA automation using Microsoft playwright that needs to listen to the HTML DOM manipulation in the java playwright. I have seen different examples in node playwright but none in java playwright. I tried using…
0
votes
2 answers

css selector for dynamic MuiButton-label

I am trying to find a selector for this date element, it is found as MuiButton-label but the date text is dynamic, I can locate using the xpath in the playwright code but looking for a way to locate it using a css selector. Appreciate your time and…
mangesh
  • 21
  • 1
  • 8
0
votes
3 answers

Wait until element change state in Playwright with Java

I have an issue with tables. Let's say that I have a table with column and rows, I get the need to verify a value before and after //get the value before String randomStuff = page.locate(columnSelector).textContent() //This will give us for example…
Hamza Amami
  • 94
  • 4
  • 21