Answer the question
In order to leave comments, you need to log in
How to get elements of a certain class (xpath)?
how to get the
<a class="class1 class2">
<i class="class1 class4 class5">
<b class="class1">
<a class="class1-class7">
//*[contains(@class, 'class1')]. не подходит берет последний элемент
//*[@class= 'class1']. не подходит
Answer the question
In order to leave comments, you need to log in
What about such an option?
//*[contains(concat(' ', normalize-space(@class), ' '), ' class1 ')]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question