Unanswered question

XPath support in variable extraction?

My application prepends id's with some text that might change over time. I tried to make my XPath selector in a way that it could deal with that. In order to do that I tried several XPath funtions and get the message: Invalid XPath expression.

So I have a few related questions
1. What XPath version is being used?
2. Are XPath functions supported?
3. What parts of the XPath specification are or aren't supported?

The specific XPath i'm trying:
//*[ends-with(@id,"MyTableId")]/tbody/tr/td/a

Kilian C.
Kilian C.

Kilian C.

Level
0
2 / 100
points

Answers

Alexis N.
Alexis N.

Alexis N.

Level
2
1255 / 2000
points
Team

NeoLoad only support XPath 1.0, so the function ends-with is not supported.

As a workaround, you can use substring and string-length functions:
//*['MyTableId' = substring(@id, string-length(@id) - string-length('MyTableId') +1)]/tbody/tr/td/a