Use xpath to select the second to last item in an array or list.
You can use last() which represents the last item in the context:
|
1 |
//li[last() - 1]/text() |
Use xpath to select the second to last item in an array or list.
You can use last() which represents the last item in the context:
|
1 |
//li[last() - 1]/text() |