Browse element list item by find_elements_by_class_name in Selenium Python

I'm starting with Selenium I have the following html code


Error 1

My mistake 1

Error 2

This is Error 2

Error 3

To access

This OK

This is OK

Error 4

Other error

Well, what I want to recover is the value of the tag "p"with the text value "To access"

for it in the Selenium Webdriver in Python I have the following code

elements = driver.find_elements_by_class_name ("error")
for elem in elements
    ### here I want to select the label "

"from elem

but I'm not sure how I can select it to pick up the text.