By ClassWebDriver
Provides a mechanism by which to find elements within a document.
Inheritance Hierarchy

OnlineSystem Object
  OpenQA.Selenium By
    OpenQA.Selenium.Support.PageObjects ByChained

Namespace: OpenQA.Selenium
Assembly: WebDriver (in WebDriver.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax

[SerializableAttribute]
public class By
Remarks

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
See Also