I have a html like:
<div class='mesage-in'> cool text here </div>
<div class='mesage-in'> bad text here </div>
and my python code like:
texto = navegador.find_element_by_class_name('message-in').text
print(texto)
Is it possible make this get all elements with same class name and put on a array or define as different variable like this?
OutPut:
print(texto1)
-> cool text here
print(texto2)
-> bad text here
#or
print(texto[0])
-> cool text here
print(texto[1])
-> bad text here
Actualy my code only get the first one