JxBrowser DOM API provides functionality that can be used for finding HTML elements on loaded web page by different conditions. The following sample code demonstrates how to find all HTML elements by specified tag name: 

List<DOMElement> divs = document.findElements(By.tagName("div"));

If you need to find only first HTML element in the document use the following approach: 

DOMElement div = document.findElement(By.id("myId"));

In general you can search for HTML elements using different conditions: 

DOMElement element = document.findElement(By.id("myId"));
DOMElement element = document.findElement(By.tagName("div"));
DOMElement element = document.findElement(By.className("myClass"));
DOMElement element = document.findElement(By.name("myName"));
DOMElement element = document.findElement(By.xpath("//textarea"));
DOMElement element = document.findElement(By.cssSelector("#root"));