I'm trying to scrape the text (dynamic) using selenium which is present as mentioned below in website. I searched all over the internet but I got how to scrape a text when it is present in separate div/p/span or any other tag only. Please help if you have any idea.
<div class='css-87uc0g e1tk4kwz1'>
Text
<span>
4.5
<span> ::before </span>
</span>
<div>
I want to extract only text here but that span tag is not allowing it.
Note: The value of text is dynamic.