On the page there is such an element on the text contained in it, i.e. you need to make a request that would be Jacqueline Cako and 11/4

<div class="ipe-Participant "> <span class="ipe-Participant_OppName">Jacqueline Cako</span> <span class="ipe-Participant_OppOdds ">11/4</span> </div> 

How to find exactly the div?

Results does not give:

 webEngine.executeScript("document.evaluate('//*[contains(text(), \"Jacqueline Cako\") and contains(text(), \"13/8\")]', document, null, XPathResult.ANY_TYPE, null).iterateNext().innerText;"); 

Thank you in advance

    1 answer 1

    He killed so much time, asked a question, immediately found something that helped me. Solution document.evaluate('//div[contains(@class, "ipe-Participant") and contains(., "Jacqueline Cako") and contains(., "11/4")]', document, null, XPathResult.ANY_TYPE, null).iterateNext().innerText;);