Answer the question
In order to leave comments, you need to log in
How to grab link text using css?
How to grab link text using CSS in a construct like this:
<a href=«#» target="_blank»>
<i class="fas fa-download»>::before</i>
<b>Нужный текст</b>
</a>
Answer the question
In order to leave comments, you need to log in
Through CSS, I'm not sure what will happen, but through XPath you can use this expression:
//i[@class="fas fa-download"]/following-sibling::b[1]/text()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question