public static class By.ByVisible extends By implements Serializable
By.ByAttributes, By.ByRegClassName, By.ByRegId, By.ByRegLinkText, By.ByRegName, By.ByRegRole, By.ByRegTagName, By.ByRegText, By.ByRegType, By.ByStyles, By.ByText, By.ByVisible, By.FLAGS
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 |
---|
ByVisible(boolean visible)
A constructor for the ByVisible locator.
|
Modifier and Type | Method and Description |
---|---|
org.openqa.selenium.WebElement |
findElement(org.openqa.selenium.SearchContext context) |
List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.SearchContext context) |
String |
toString() |
attribute, attribute, attributes, className, id, linkText, name, role, role, style, style, styles, tagName, type, type, visible, visibleText, visibleText, visibleText
public ByVisible(boolean visible)
visible
- Whether the elements are visible.public List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.SearchContext context)
findElements
in class org.openqa.selenium.By
public org.openqa.selenium.WebElement findElement(org.openqa.selenium.SearchContext context)
findElement
in class org.openqa.selenium.By
public String toString()
toString
in class org.openqa.selenium.By
© Copyright 2015 EntIT Software LLC