Java Webdriver HashMap element array
<pre><code>String name = "";
    String width = "";
    String height = "";



    List&lt;WebElement&gt; imageName = driver.findElements(By.cssSelector("div.card-arago div.hover-info div.name"));
    List&lt;HashMap&gt; imageInfo = new ArrayList&lt;HashMap&gt;();
    HashMap&lt;String, String&gt; attributes = new HashMap&lt;String, String&gt;();
    imageInfo.add(attributes);
    for (WebElement image : imageName) {
        attributes.put("name",image.getText());
    }
    List&lt;WebElement&gt; images = driver.findElements(By.cssSelector("div.card-arago a img"));
    for (WebElement image : images) {
        attributes.put("width", image.getAttribute("width"));
        attributes.put("height", image.getAttribute("height"));

    }
</code></pre>

<p>I'm trying to return all the images from the page, but it only returns the last image card on the page?</p>