Java Playwright get Siblings by ElementHandle

58 views Asked by At

I have a page with i select the items but i need starting with a ElementHandle i need to get the N next siblings this cannot be make with a general css selector the info i need is in the siblings i have try the following but i doesn't work.

elementHandle.evaluateHandle("(element)=>element?.nextSibling.nextSibling").asElement()
elementHandle.getProperty("nextSibling").getProperty("nextSibling").asElement().innerHTML()

But both im receiving is a empty String

enter image description here enter image description here

All i want from a ElementHandle get the next sibling like in JSoup

element.nextElementSibling()

I have tried but with not success.

0

There are 0 answers