There is no specific XPath for this node, because XPath is a search query. Like google, you can find a specific page using different search terms. Moreover, the XPath query returning the current node can (probably will) change when the DOM tree changes, so the path you can get is valid only until the next tree modification is performed.
You can provide each of your nodes with a unique identifier or class name (a class is safer if you want to use other identifiers - there can be several classes and only one identifier). Then you can search using this class / id.
An example for a range of tags and a unique_1 _ class:
//span[contains(@class, 'unique_1_')]
source
share