|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use By | |
---|---|
org.openqa.selenium |
Uses of By in org.openqa.selenium |
---|
Methods in org.openqa.selenium that return By | |
---|---|
static By |
By.className(java.lang.String className)
Finds elements based on the value of the "class" attribute. |
static By |
By.cssSelector(java.lang.String selector)
Finds elements via the driver's underlying W3 Selector engine. |
static By |
By.id(java.lang.String id)
|
static By |
By.linkText(java.lang.String linkText)
|
static By |
By.name(java.lang.String name)
|
static By |
By.partialLinkText(java.lang.String linkText)
|
static By |
By.tagName(java.lang.String name)
|
static By |
By.xpath(java.lang.String xpathExpression)
|
Methods in org.openqa.selenium with parameters of type By | |
---|---|
WebElement |
WebDriver.findElement(By by)
Find the first WebElement using the given method. |
WebElement |
SearchContext.findElement(By by)
Find the first WebElement using the given method. |
WebElement |
WebElement.findElement(By by)
Find the first WebElement using the given method. |
java.util.List<WebElement> |
WebDriver.findElements(By by)
Find all elements within the current page using the given mechanism. |
java.util.List<WebElement> |
SearchContext.findElements(By by)
Find all elements within the current context using the given mechanism. |
java.util.List<WebElement> |
WebElement.findElements(By by)
Find all elements within the current context using the given mechanism. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |