0

I have few elements which have in common only first part of attribute value, my question is, is that possibly to find list of elements by only partial value

below are elements:

<div data-fields="productLIFiveYr" style="overflow: hidden;">…</div>
<div data-fields="productLITenYr" style="overflow: hidden;">…</div>
<div data-fields="productLITwentyYr" style="overflow: hidden;">…</div>

and I am looking for something like this: xpath='//div[data-fields="product.."]'

1 Answer 1

3
//div[starts-with(@data-fields, "product")]
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.