📅  最后修改于: 2022-03-11 14:48:30.483000             🧑  作者: Mango
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(".//*")