[b]"How Do I Use XPath Following Sibling to Target the Next Element?"[/b] or [b]"Struggling with XPath Following S

20 Replies, 1431 Views

Had this exact issue last week! The problem was that the sibling wasn’t *directly* after. Try:
`//div[@class='item']/following-sibling::*[local-name()='div'][1]`

Also, [this XPath cheatsheet](https://devhints.io/xpath) saved my life.



Users browsing this thread: 1 Guest(s)