Reputation: 454
I am very curious to know how does firepath finds a unique xpath locator with in seconds as soon as we click on element. I know how to query xpath using firepath, but what I want to know that which language or technology has been used to developed such tools and what if I have to develop similar kind of tool. I have seen many automation tool have develop with such tools where when we click on page it will generate unique xpath locator, it makes me to curious and I want to know in depth how does things works in back end.
Upvotes: 0
Views: 66
Reputation: 2583
type this in console and click somewhere) so it's the answer
document.addEventListener('click', function(event){console.log(event.target)});
Upvotes: 0