Finds element when the id or the name attribute has the specified value.
Inheritance Hierarchy
OpenQA.SeleniumBy
OpenQA.Selenium.Support.PageObjectsByIdOrName
Namespace: OpenQA.Selenium.Support.PageObjects
Assembly: WebDriver.Support (in WebDriver.Support.dll) Version: 3.1.0
Syntax
The ByIdOrName type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | ByIdOrName |
Initializes a new instance of the ByIdOrName class.
|
Properties
Name | Description | |
---|---|---|
![]() | Description |
Gets or sets the value of the description for this By class instance.
(Inherited from By.) |
![]() | FindElementMethod |
Gets or sets the method used to find a single element matching specified criteria.
(Inherited from By.) |
![]() | FindElementsMethod |
Gets or sets the method used to find all elements matching specified criteria.
(Inherited from By.) |
Methods
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from By.) |
![]() | Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() | FindElement |
Find a single element.
(Overrides ByFindElement(ISearchContext).) |
![]() | FindElements |
Finds many elements
(Overrides ByFindElements(ISearchContext).) |
![]() | GetHashCode |
Serves as a hash function for a particular type.
(Inherited from By.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString |
Writes out a description of this By object.
(Overrides ByToString.) |
See Also