By class
Constructors
-
By(String using, String value)
-
const
-
By.className(String className)
-
Returns an element whose class name contains the search value; compound
class names are not permitted
const
-
By.cssSelector(String cssSelector)
-
Returns an element matching a CSS selector.
const
-
By.id(String id)
-
Returns an element whose ID attribute matches the search value.
const
-
By.linkText(String linkText)
-
Returns an anchor element whose visible text matches the search value.
const
-
By.name(String name)
-
Returns an element whose NAME attribute matches the search value.
const
-
By.partialLinkText(String partialLinkText)
-
Returns an anchor element whose visible text partially matches the search
value.
const
-
By.tagName(String tagName)
-
Returns an element whose tag name matches the search value.
const
-
By.xpath(String xpath)
-
Returns an element matching an XPath expression.
const