If I do
match = driver.find_element_by_class_name("match")
print(match.text)
I only get the text in the element.
<class id="match">
This is a text. This is displayed with .text
<p align="center"><a href="www.stackoverflow.com"></p>
The above is not displayed with .text
</class>
What to do when I also want the html in the element, not only the text?
matchvariable is the element.match.get_attribute('innerHTML')