title: How do I distinguish between two elements having same ids on same page using Selenium Webdriver?
body: <p>I have two lists on my web page and both of them have button (image) to select all the items from the list. Both images have the same id and don't have any other information like class name, CSS, XPath. I want to click on the second image to select all the items from the second list. But when the web driver executes the following line: </p>
  
  <pre><code>driver.findElement(By.id("MoveAllRight")).click();
  </code></pre>
  
  <p>It always clicks on the first image, but I want it to click on the second one.</p>
  
  <p>Can anybody help me for this?</p>