Class ByAll
- java.lang.Object
-
- org.openqa.selenium.By
-
- org.openqa.selenium.support.pagefactory.ByAll
-
- All Implemented Interfaces:
java.io.Serializable
public class ByAll extends org.openqa.selenium.By implements java.io.SerializableMechanism used to locate elements within a document using a series of lookups. This class will find all DOM elements that matches any of the locators in sequence, e.g.driver.findElements(new ByAll(by1, by2))
will find all elements that match by1 and then all elements that match by2. This means that the list of elements returned may not be in document order.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openqa.selenium.By
org.openqa.selenium.By.ByClassName, org.openqa.selenium.By.ByCssSelector, org.openqa.selenium.By.ById, org.openqa.selenium.By.ByLinkText, org.openqa.selenium.By.ByName, org.openqa.selenium.By.ByPartialLinkText, org.openqa.selenium.By.ByTagName, org.openqa.selenium.By.ByXPath
-
-
Constructor Summary
Constructors Constructor Description ByAll(org.openqa.selenium.By... bys)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.openqa.selenium.WebElementfindElement(org.openqa.selenium.SearchContext context)java.util.List<org.openqa.selenium.WebElement>findElements(org.openqa.selenium.SearchContext context)java.lang.StringtoString()
-
-
-
Method Detail
-
findElement
public org.openqa.selenium.WebElement findElement(org.openqa.selenium.SearchContext context)
- Overrides:
findElementin classorg.openqa.selenium.By
-
findElements
public java.util.List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.SearchContext context)
- Specified by:
findElementsin classorg.openqa.selenium.By
-
toString
public java.lang.String toString()
- Overrides:
toStringin classorg.openqa.selenium.By
-
-