public class ByWebElement extends org.openqa.selenium.By implements 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| Constructor and Description |
|---|
ByWebElement(String id) |
ByWebElement(org.openqa.selenium.WebElement element) |
| Modifier and Type | Method and Description |
|---|---|
org.openqa.selenium.WebElement |
findElement(org.openqa.selenium.SearchContext aContext) |
List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.SearchContext aContext) |
String |
getId() |
String |
toLocator() |
String |
toString() |
public ByWebElement(String id)
public ByWebElement(org.openqa.selenium.WebElement element)
public String getId()
public org.openqa.selenium.WebElement findElement(org.openqa.selenium.SearchContext aContext)
findElement in class org.openqa.selenium.Bypublic List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.SearchContext aContext)
findElements in class org.openqa.selenium.Bypublic String toString()
toString in class org.openqa.selenium.Bypublic String toLocator()
Copyright © 2018. All rights reserved.