try {
Document doc = Jsoup.connect("http://localhost:8080/configurator").get();
Elements cards = doc.getElementsByAttributeValue("class", "card");
System.out.println(cards.size());
} catch (IOException ex) {
ex.printStackTrace();
}
<div id="outlet"></div>
List<WebElement>
)