In Selenium with Python is it possible to get all the children of a WebElement as a list?
Here is a code to get the child elements (In java):
String childTag = childElement.getTagName();
if(childTag.equals("html"))
{
return "/html[1]"+current;
}
WebElement parentElement = childElement.findElement(By.xpath(".."));
List childrenElements = parentElement.findElements(By.xpath("*"));
int count = 0;
for(int i=0;i