For browser applications, there are various tools that can be used for each browser type; Chrome, Firefox, Edge, Safari, Opera, and so on. In this section, we will discuss the Inspector tool that is built into each browser.
Inspecting page elements on browser applications
Types of locators
Each of these browsers has, at the very least, a developer's tool called Inspector, which allows users to look at the HTML/JavaScript code in the DOM, to view elements as they exist on the page. Depending on how the developers build the pages, there may be several unique identifiers that can be used, or there may be none.
In general, and as common as it may seem, using a unique ID is always the best practice for identifying...