Provides a mechanism by which to find elements within a document.
System Object OpenQA.Selenium By OpenQA.Selenium.Support.PageObjects ByChainedNamespace: OpenQA.SeleniumAssembly: WebDriver (in WebDriver.dll) Version: 2.35.0.0 (2.35.0.0)
[SerializableAttribute]
public class By
<SerializableAttribute> _
Public Class By
[SerializableAttribute]
public ref class By
It is possible to create your own locating mechanisms for finding documents.
In order to do this,subclass this class and override the protected methods. However,
it is expected that that all subclasses rely on the basic finding mechanisms provided
through static methods of this class. An example of this can be found in OpenQA.Support.ByIdOrName