public abstract class StringLocatorAwareBy
extends org.openqa.selenium.By
By
construct which stored the locator as String.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 and Description |
---|
StringLocatorAwareBy(String locator,
org.openqa.selenium.By by) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
org.openqa.selenium.WebElement |
findElement(org.openqa.selenium.SearchContext context) |
List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.SearchContext context) |
org.openqa.selenium.By |
getBy() |
String |
getLocator() |
int |
hashCode() |
String |
toString() |
static EByXpath |
xpath(String locator) |
public StringLocatorAwareBy(String locator, org.openqa.selenium.By by)
locator
- by
- public String getLocator()
public org.openqa.selenium.By getBy()
public org.openqa.selenium.WebElement findElement(org.openqa.selenium.SearchContext context)
findElement
in class org.openqa.selenium.By
public List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.SearchContext context)
findElements
in class org.openqa.selenium.By
public boolean equals(Object o)
equals
in class org.openqa.selenium.By
public int hashCode()
hashCode
in class org.openqa.selenium.By
public String toString()
toString
in class org.openqa.selenium.By
Copyright © 2018. All rights reserved.