Java org.openqa.selenium By fields, constructors, methods, implement or subclass

Example usage for Java org.openqa.selenium By fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.openqa.selenium By.

The text is from its open source code.

Subclass

org.openqa.selenium.By has subclasses.
Click this link to see all its subclasses.

Method

ByclassName(String className)
Find elements based on the value of the "class" attribute.
BycssSelector(String cssSelector)
Find elements via the driver's underlying W3C Selector engine.
booleanequals(Object o)
WebElementfindElement(SearchContext context)
Find a single element.
ListfindElements(SearchContext context)
Find many elements.
Byid(String id)
BylinkText(String linkText)
Byname(String name)
BypartialLinkText(String partialLinkText)
BytagName(String tagName)
StringtoString()
Byxpath(String xpathExpression)