Selenium Get H1 Text Python
# 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
Shanti
# 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