Examples with xpath and Css (ID, Name, Text and Links)
Submitted by harrydev on Fri, 10/03/2014 - 05:21In order to perform any operation on the element like click or type into an element, we need to locate that element. It is very simple to locate elements if the HTML DOM has 'id' or 'name' and they are the safest locators to use. As we know it is always better to use ID and Name to locate the elements which will work for sure. You don't need to search for any other locator if there is ID or unique name present in your application.
But with the applications designed using modern JavaScript Frameworks like Angular, React and Vue.js have no proper web elements in DOM.