title: How to get element in element from the list of elements in Java and Selenium
body: <p>On the page I have, for example, list of cars, all of them have the same buttons, like "select" (locators are the same for all select buttons):</p>
  
  <p>In my code, I'm using this to get the list of WebElements for cars:</p>
  
  <pre><code>List&lt;WebElement&gt; allCars = driver.findElements(By.Xpath(ListOfAvailableCars));
  </code></pre>
  
  <p>Then, I'm getting WebElement for 5th car and I'm locating select button for this car:</p>
  
  <pre><code>allCars.get(4).findElement(By.Xpath(SelectButtonLocator)).click();
  </code></pre>
  
  <p>But "select" button pressed for the 1st car in the list.</p>
  
  <p>Is it possible to just locate button and other elements in this particular element (to restrict Webdriver to this element only)?</p>