There is this element which has child elements, those child elements again have child elements and so on. I would like to get all elements that are descendants of the elemen
Try this one:
List childs = rootWebElement.findElements(By.tagName(".//*"));