By MembersWebDriver

The By type exposes the following members.
Constructors

  NameDescription
Protected methodBy 
Initializes a new instance of the By class.
Protected methodBy(Func ISearchContext, IWebElement , Func ISearchContext, ReadOnlyCollection IWebElement  )
Initializes a new instance of the By class using the given functions to find elements.
Back to Top
Methods

  NameDescription
Public methodStatic memberClassName
Gets a mechanism to find elements by their CSS class.
Public methodStatic memberCssSelector
Gets a mechanism to find elements by their cascading style sheet (CSS) selector.
Public methodEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Overrides OnlineObject Equals(Object).)
Protected methodOnlineFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodFindElement
Finds the first element matching the criteria.
Public methodFindElements
Finds all elements matching the criteria.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Overrides OnlineObject GetHashCode .)
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Public methodStatic memberId
Gets a mechanism to find elements by their ID.
Public methodStatic memberLinkText
Gets a mechanism to find elements by their link text.
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Public methodStatic memberName
Gets a mechanism to find elements by their name.
Public methodStatic memberPartialLinkText
Gets a mechanism to find elements by a partial match on their link text.
Public methodStatic memberTagName
Gets a mechanism to find elements by their tag name.
Public methodToString
Gets a string representation of the finder.
(Overrides OnlineObject ToString .)
Public methodStatic memberXPath
Gets a mechanism to find elements by an XPath query.
Back to Top
Operators

  NameDescription
Public operatorStatic memberEquality
Determines if two By instances are equal.
Public operatorStatic memberInequality
Determines if two By instances are unequal.
Back to Top
Properties

  NameDescription
Protected propertyDescription
Gets or sets the value of the description for this By class instance.
Protected propertyFindElementMethod
Gets or sets the method used to find a single element matching specified criteria.
Protected propertyFindElementsMethod
Gets or sets the method used to find all elements matching specified criteria.
Back to Top
See Also