I have a page with a list of 10 different elements links , I clicao an element , go to page specifies it, realize the operations that need to perform and then return to the list of elements .
After performing the operations , I need to return to the list of items and click the next element and not on the same element that clicked previously .
How do I click the next element of the list and not in LEMENT already clicked?
Obs .: I do not have access to the source code.
basic structure of the page:
<!DOCTYPE html>
<html>
<body>
<h2>Page Test</h2>
<div id="results-container"><ol id="results" class="search-results">
<li class="mod result idx0 people hover" data-li-entity-id="354494011" data-li-position="0"> </li>
</div>
</br>
<div id="results-container"><ol id="results" class="search-results">
<li class="mod result idx0 people hover" data-li-entity-id="354494012" data-li-position="1"> </li>
</div>
</br>
<div id="results-container"><ol id="results" class="search-results">
<li class="mod result idx0 people hover" data-li-entity-id="354494022" data-li-position="2"> </li>
</div>
</body>
</html>
java.util.List<WebElement> links = (List<WebElement>) driver.findElements(By.linkText("element"));
System.out.println(links.size());

forloop for each element in list that you get fromfind_elements()click on first link, do all your operations, then in next iteration you do all the same for next element and so on...