Uses of Class
org.openqa.selenium.By
-
Packages that use By Package Description org.openqa.selenium -
-
Uses of By in org.openqa.selenium
Subclasses of By in org.openqa.selenium Modifier and Type Class Description static classBy.ByClassNamestatic classBy.ByCssSelectorstatic classBy.ByIdstatic classBy.ByLinkTextstatic classBy.ByNamestatic classBy.ByPartialLinkTextstatic classBy.ByTagNamestatic classBy.ByXPathMethods in org.openqa.selenium that return By Modifier and Type Method Description static ByBy. className(java.lang.String className)Find elements based on the value of the "class" attribute.static ByBy. cssSelector(java.lang.String cssSelector)Find elements via the driver's underlying W3C Selector engine.static ByBy. id(java.lang.String id)static ByBy. linkText(java.lang.String linkText)static ByBy. name(java.lang.String name)static ByBy. partialLinkText(java.lang.String partialLinkText)static ByBy. tagName(java.lang.String tagName)static ByBy. xpath(java.lang.String xpathExpression)Methods in org.openqa.selenium with parameters of type By Modifier and Type Method Description WebElementSearchContext. findElement(By by)Find the firstWebElementusing the given method.WebElementWebDriver. findElement(By by)Find the firstWebElementusing the given method.WebElementWebElement. findElement(By by)Find the firstWebElementusing the given method.java.util.List<WebElement>SearchContext. findElements(By by)Find all elements within the current context using the given mechanism.java.util.List<WebElement>WebDriver. findElements(By by)Find all elements within the current page using the given mechanism.java.util.List<WebElement>WebElement. findElements(By by)Find all elements within the current context using the given mechanism.
-