Class By.ByAttributes

java.lang.Object

    org.openqa.selenium.By

        com.hpe.leanft.selenium.By

            com.hpe.leanft.selenium.By.ByAttributes

Enclosing class:
By


public static class By.ByAttributes
extends By
A locator that locates elements by the provided attributes (strings or regular expressions).

Nested Class Summary

Nested classes/interfaces inherited from class com.hpe.leanft.selenium.By

By.ByAttributes, By.ByRegClassName, By.ByRegId, By.ByRegLinkText, By.ByRegName, By.ByRegRole, By.ByRegTagName, By.ByRegText, By.ByRegType, By.ByStyles, By.ByText, By.ByVisible, By.FLAGS

Nested classes/interfaces inherited from class org.openqa.selenium.By

org.openqa.selenium.By.ByClassName, org.openqa.selenium.By.ByCssSelector, org.openqa.selenium.By.ById, org.openqa.selenium.By.ByLinkText, org.openqa.selenium.By.ByName, org.openqa.selenium.By.ByPartialLinkText, org.openqa.selenium.By.ByTagName, org.openqa.selenium.By.ByXPath

Constructor Summary

Constructors

Constructor and Description
ByAttributes(Map<String,?> attributes)
A constructor for the ByAttributes locator.

Method Summary

All Methods

Modifier and TypeMethod and Description
List<org.openqa.selenium.WebElement>findElements(org.openqa.selenium.SearchContext searchContext) 
StringtoString() 

Methods inherited from class com.hpe.leanft.selenium.By

attribute, attribute, attributes, className, id, linkText, name, role, role, style, style, styles, tagName, type, type, visible, visibleText, visibleText, visibleText

Methods inherited from class org.openqa.selenium.By

className, cssSelector, equals, findElement, hashCode, id, linkText, name, partialLinkText, tagName, xpath

Methods inherited from class java.lang.Object

clone, finalize, getClass, notify, notifyAll, wait, wait, wait

Constructor Detail

ByAttributes

public ByAttributes(Map<String,?> attributes)
A constructor for the ByAttributes locator.
Parameters:
attributes - One or more attributes (strings or regular expressions).

Method Detail

  • findElements

    public List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.SearchContext searchContext)
    Specified by:
    findElements in class org.openqa.selenium.By
  • toString

    public String toString()
    Overrides:
    toString in class org.openqa.selenium.By