Get element XPath
target element
Optional
when id attribute of element is present the xpath can be simplified to contain id
See https://github.com/open-telemetry/opentelemetry-js/issues/3174
Get element XPath