With Python and Selenium, I try to extract a text value from a website. Extract of HTML :
<div order=2" class="css-1asuq02 e1y0u4b10">
<p>
<span role="img" aria-label="icon-circle" class="css-shla5t ef02kcv0">
</span>
"343 W"
</p>
</div>
Python code:
driver.find_element(By.XPATH, value= ???)
I tried :
driver.find_elements(By.XPATH, value='//div[@order="2"]')
It works but too many elements
How to select ONLY this order="2"
and class (Xpath, contains, other) ?
I want to retrieve 343 value