Find an Element in xPath where the next Sibling has a specific Text

Viewed 313

enter image description here

Hi I am trying to find a specific "only" keyword where the next Sibling has a specific Character. I am trying to use the below mentioned code but seems it is not returning any value. Would be great help if you can show me where I am wrong.

 //a[text()='only']/following-sibling::label[text()='Jet Airways']
1 Answers
Related