How Do I Use XPath Following Sibling to Target the Next Element? or Struggling with XPath Following S

20 Replies, 1781 Views

I feel your pain! Sometimes the issue isn’t the xpath following sibling but the *context*. Make sure you’re not inside a nested div or something.

Try this:
`//*[@class='item']/following-sibling::*[1]`

More generic, but might catch what you need.

Messages In This Thread



Users browsing this thread: 1 Guest(s)