Answer the question
In order to leave comments, you need to log in
How to concatenate string and url attribute value in Xpath?
Using Xpath, I want to concatenate this string: "/images/products/"
and the url attribute values in the following code snippet:
<div id="small-images">
<ul>
<li url="1.jpeg"></li>
<li url="2.jpeg"></li>
<li url="3.jpeg"></li>
</ul>
</div>
Answer the question
In order to leave comments, you need to log in
What do you mean it doesn't work? Have you looked at what your selector returns? Is it really the right URL value?
You need either this
or that
There is no element you are looking for, because you are looking for li in immediate descendants (and there is also ul first)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question