Mechanism used to locate elements within a document using a series of other lookups. This class
will find all DOM elements that matches each of the locators in sequence
Inheritance Hierarchy
OpenQA.SeleniumBy
OpenQA.Selenium.Support.PageObjectsByChained
Namespace: OpenQA.Selenium.Support.PageObjects
Assembly: WebDriver.Support (in WebDriver.Support.dll) Version: 3.1.0
Syntax
The ByChained type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | ByChained |
Initializes a new instance of the ByChained class with one or more By objects.
|
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 comma separated list of the By objects used in the chain.
(Overrides ByToString.) |
Examples
driver.findElements(new ByChained(by1, by2))
See Also