Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98788

How does looping through a list based on findElements work?

$
0
0

First one in list is easy since you can use find Element. I find the element and need to get information from preceding and following divs. For the "n" element in the list, what is the xPath syntax for moving/backwards to other associated divs?

I have tried various x path following syntax such as "following-sibling::div", "/following-sibling::div", "./following-sibling::div", and many others. I just have not found the documentation for the correct syntax.


Viewing all articles
Browse latest Browse all 98788

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>