Class By.ByRegType

java.lang.Object

    org.openqa.selenium.By

        com.hpe.leanft.selenium.By

            com.hpe.leanft.selenium.By.ByRegType

All Implemented Interfaces:
Serializable
Enclosing class:
By


public static class By.ByRegType
extends By
implements Serializable

A locator that locates elements by the provided regular expression type parameter.

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

Field Summary

Fields

Modifier and Type Field and Description
protected String className 
protected Pattern pattern 

Constructor Summary

Constructors

Constructor and Description
ByRegType(Pattern pattern, String className)
A constructor for the ByRegType locator.

Method Summary

All Methods

Modifier and Type Method and Description
org.openqa.selenium.WebElement findElement(org.openqa.selenium.SearchContext context) 
List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.SearchContext context) 
protected List<org.openqa.selenium.WebElement> findElementsByRegex(org.openqa.selenium.JavascriptExecutor executor, org.openqa.selenium.WebElement element)
Finds all the elements that match pattern.pattern() global field.
String toString() 

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, hashCode, id, linkText, name, partialLinkText, tagName, xpath

Methods inherited from class java.lang.Object

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

Field Detail

Constructor Detail

ByRegType

public ByRegType(Pattern pattern,
                 String className)
A constructor for the ByRegType locator.
Parameters:
pattern - The name of the element in the form of a regular expression.
className - The name of the class of the locator.

Method Detail