public class ByIdOrName
extends org.openqa.selenium.By
implements java.io.Serializable
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
Modifier and Type | Field and Description |
---|---|
private org.openqa.selenium.By |
idFinder |
private java.lang.String |
idOrName |
private org.openqa.selenium.By |
nameFinder |
private static long |
serialVersionUID |
Constructor and Description |
---|
ByIdOrName(java.lang.String idOrName) |
Modifier and Type | Method and Description |
---|---|
org.openqa.selenium.WebElement |
findElement(org.openqa.selenium.SearchContext context) |
java.util.List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.SearchContext context) |
java.lang.String |
toString() |
private static final long serialVersionUID
private org.openqa.selenium.By idFinder
private org.openqa.selenium.By nameFinder
private java.lang.String idOrName
public org.openqa.selenium.WebElement findElement(org.openqa.selenium.SearchContext context)
findElement
in class org.openqa.selenium.By
public java.util.List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.SearchContext context)
findElements
in class org.openqa.selenium.By
public java.lang.String toString()
toString
in class org.openqa.selenium.By