Honestly, I gave up on xpath following sibling for complex cases and switched to CSS selectors. Way easier for siblings:
`div.item + div`
But if you’re stuck with XPath, try `following-sibling::*` to catch any element type. Might help if the HTML is messy.
`div.item + div`
But if you’re stuck with XPath, try `following-sibling::*` to catch any element type. Might help if the HTML is messy.
