I'm starting with Selenium I have the following html code
<!DOCTYPE html>
<html lang="es" dir="ltr">
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<div class="error">
<h4>Error 1</h4>
<p>Mi error 1</p>
</div>
<div class="error">
<h4>Error 2</h4>
<p>Este es el Error 2</p>
</div>
<div class="error">
<h4>Error 3</h4>
<p>Acceder</p>
</div>
<div class="ok">
<h4>Esto OK</h4>
<p>Esto esta OK</p>
</div>
<div class="error">
<h4>Error 4</h4>
<p>Otro error</p>
</div>
</body>
</html>
Well, what I want to retrieve is the value of the " p " tag with the text value "Sign in"
for this in the Selenium Webdriver in Python I have the following code
elementos=driver.find_elements_by_class_name("error")
for elem in elementos
### aqui quiero selecionar la etiqueta "<p>" de elem
but I'm not sure how I can select it to pick up the text.
Salu2