I'm familiar with using the various different approaches to selecting elements in Watir. Instead, I want to do the opposite: I have an element which I have already enumerated, and I want to generate a unique reference for it.
I can obviously use the Watir hash reference to access the element inside the app, but I also want something that is generic, like an Xpath selector, which makes sense to wetware outside the app.
Is there a method in watir to acces the xpath directly?
The method isn't exposed (as confirmed by Justin Ko in the comments).