请让我知道如何使用文档中的Node.childNodes的代码语法
http://docs.python.org/library/xml.dom.html#module-xml.dom
我是python和selenium的初学者。我试过使用:
elem = self.browser.find_element_by_id("pie4")
x = elem.childNodes
print x
我也试过:
self.dom.getElementsByTagName('path')[0].firstChild.data
但都失败了。
Tags:
elem
是^{elem.find_elements_by_xpath()
来选择相关的子元素,例如:输出
相关问题 更多 >
编程相关推荐