How it locate or identify the element using the type like id, class, etc. Moreover BY is an abstract class. How we create object for it if possible? We know we cannot create object directly for an abstract without implementing it by an another class. I would like to know the scenario behind it before we are directly using in our scripts
public abstract class By extends java.lang.Object
I have gone through the link "https://selenium.googlecode.com/git/docs/api/java/org/openqa/selenium/By.html"