Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

selenium get all child elements python

el = driver.find_element_by_name('a')

// Two ways to get all children elements.
// By css selector:
childrend_by_css = el.find_elements_by_css_selector("*")
// By xpath:
childrend_by_xpath = el.find_elements_by_xpath(".//*")
 
PREVIOUS NEXT
Tagged: #selenium #child #elements #python
ADD COMMENT
Topic
Name
9+9 =