Uses of Class
org.openqa.selenium.By
-
Uses of By in org.openqa.selenium
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
static class
static class
Modifier and TypeMethodDescriptionstatic By
Find elements based on the value of the "class" attribute.static By
By.cssSelector
(String cssSelector) Find elements via the driver's underlying W3C Selector engine.static By
static By
static By
static By
By.partialLinkText
(String partialLinkText) static By
static By
Modifier and TypeMethodDescriptionSearchContext.findElement
(By by) Find the firstWebElement
using the given method.WebDriver.findElement
(By by) Find the firstWebElement
using the given method.WebElement.findElement
(By by) Find the firstWebElement
using the given method.SearchContext.findElements
(By by) Find all elements within the current context using the given mechanism.WebDriver.findElements
(By by) Find all elements within the current page using the given mechanism.WebElement.findElements
(By by) Find all elements within the current context using the given mechanism.