A
A
aqau1232021-12-27 20:39:09
XPath
aqau123, 2021-12-27 20:39:09

Why can't it find the element in the browser?

61c9fa15ae379061541742.jpeg
How am I to understand this? That is, he finds the category of car, but not this one. How is that how it works out?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Fov, 2021-12-28
@Roman-Fov

Maybe it's the gaps? Trying normalize-space

A
Alexey Sundukov, 2021-12-28
@alekciy

You should use the contains() function. More or less like this:

//div[contains(text(), "Досуг и развлечения") and @class="p-index__segment-title"]/parent::a

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question