I'm trying to capture an element of a web page using selenium in python
<span class="_2-1_O"><span dir="auto" class="_1jlxc _3Whw5">Ana Smith</span></span>
I'm trying to capture the name Ana Smith in Phyton:
nome_contato = driver.find_elements_by_class_name("_1jlxc _3Whw5").text
However, python cannot locate
try:
name= driver.find_elements_by_class_name("_1jlxc _3Whw5").text
except Exception as e:
print("|False")
Result: |False