I'm generating a List of WebElements with:
List<WebElement> elements = driver.findElements(By.className("name"));
Now I'd like to get subelements from each element in elements
. I tried solutions like
WebElement element = elements.get(0).findElement(By.xpath("/x"));
where x is the tagname
of each element in elements. But this searches in the complete active frame and not only in the subelements of elements.get(0)
Any idea?