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.
- When I open DOM in developer tool it was so confusing.
- How they identify element on click?
- Is it rocket science?
- Do they user JavaScript, JQuery or any other programing language?
- Do we have any apis which can be use?