Can someone share
an example code in Selenium with Java where we can create our own locating mechanism?
as per the documentation, it says:
"By" is an abstract class for locating elements. So to create own locating mechanisms, it is possible to subclass this class and override the protected methods as required.
Inside the "By" class I see only two protected methods. But I am not sure how to override them in order to create my own locating mechanisms. Please help if someone has used this before.
These are the two protected methods inside the "By" class
Thanks