For questions about the Playwright API for Java. This tag should be used in conjunction with the [playwright] tag.
Questions tagged [playwright-java]
83 questions
0
votes
3 answers
Locators and Page Object Model
I want to use Playwright's Locators in my page objects. I found an example for Javascript (stripped for brevity):
import { Page } from '@playwright/test';
export class TodoPage {
listItems = this.page.locator('.todo-list li');
…

Christian Baumann
- 3,188
- 3
- 20
- 37
0
votes
1 answer
How to get the locator for an CSS ::after selector?
I have the following element (stripped for brevitiy):
Which renders to this element:
I now want to click the dropdown…
"Search"
::after

Christian Baumann
- 3,188
- 3
- 20
- 37
0
votes
0 answers
Playwright element is not attached to the DOM issue
I have an issue with playwright, when i loop through let's say a tbody or something like that then change the page do something and get back to the original page i get this error
============================================================
…

AigleZ
- 11
- 1
0
votes
1 answer
Playwright not displaying Alert Message
My application triggers an alert notification after submitting a request and I would like to capture the alert message in the notification using playwright. I have tried the following but still it does not work, Any help here would be…

Rikki
- 1
- 2
-1
votes
1 answer
how to wait for v-dialog to fully open on Playwright
I'm using Vuetify and writing end-to-end tests using Playwright. I see that a v-dialog is being opened with a delay due to animation. My Playwright test very quickly starts interacting with the elements inside the dialog. I want to wait until the…

canbax
- 3,432
- 1
- 27
- 44
-1
votes
3 answers
Playwright Java : Playwright fails to click on element whose property is set hidden
I tried many locators but looks like its hidden so playwright fails to click any workaround please help

sumit goyal
- 35
- 1
- 7