📜  selenium 获取 h1 文本 python 代码示例

📅  最后修改于: 2022-03-11 14:46:46.446000             🧑  作者: Mango

代码示例1
# If you are wanting the text of the h1 element then you need to do this:

string = driver.find_element_by_tag_name(h3).text