Package | Description |
---|---|
org.openqa.selenium |
Modifier and Type | Class and Description |
---|---|
static class |
By.ByClassName |
static class |
By.ByCssSelector |
static class |
By.ById |
static class |
By.ByLinkText |
static class |
By.ByName |
static class |
By.ByPartialLinkText |
static class |
By.ByTagName |
static class |
By.ByXPath |
Modifier and Type | Method and Description |
---|---|
static By |
By.className(String className)
Finds elements based on the value of the "class" attribute.
|
static By |
By.cssSelector(String selector)
Finds elements via the driver's underlying W3 Selector engine.
|
static By |
By.id(String id) |
static By |
By.linkText(String linkText) |
static By |
By.name(String name) |
static By |
By.partialLinkText(String linkText) |
static By |
By.tagName(String name) |
static By |
By.xpath(String xpathExpression) |
Modifier and Type | Method and Description |
---|---|
WebElement |
WebElement.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 |
WebDriver.findElement(By by)
Find the first
WebElement using the given method. |
List<WebElement> |
WebElement.findElements(By by)
Find all elements within the current context using the given mechanism.
|
List<WebElement> |
SearchContext.findElements(By by)
Find all elements within the current context using the given mechanism.
|
List<WebElement> |
WebDriver.findElements(By by)
Find all elements within the current page using the given mechanism.
|
Copyright © 2014. All rights reserved.