So I want to print out "ou" from this HTML via XPath.
<div class="syllable">ou</div>
This is my code:
elem = driver.find_elements_by_xpath('*my xpath*')
for my_elem in elem:
print(my_elem.text)
I used .text
in this code but it just prints out nothing when it runs. It should be printing ou
but it just prints nothing at all. If someone could please tell me what I am doing wrong that would be great.