WebElement body = browser.findElement(By.xpath(\"//body\")); body.findElement(By.xpath(\"\")); // I want to get all child elements // i
The child instead of descendant may helps someone.
descendant