Get all child elements

前端 未结 4 375
太阳男子
太阳男子 2020-12-07 13:55

In Selenium with Python is it possible to get all the children of a WebElement as a list?

4条回答
  •  醉酒成梦
    2020-12-07 15:00

    Another veneration of find_elements_by_xpath(".//*") is:

    from selenium.webdriver.common.by import By
    
    
    find_elements(By.XPATH, ".//*")
    

提交回复
热议问题