Record web elements by JS path

You might find this article useful: