public abstract class HtmlTagFinder extends BaseFinder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver>
Finder
for all types of HTML tags. Subclasses should be created for each specific
tag, specifying the tag name (e.g. "a" in the case or an anchor tag), and a description.matchers
Constructor and Description |
---|
HtmlTagFinder() |
Modifier and Type | Method and Description |
---|---|
protected void |
describeTargetTo(org.hamcrest.Description description) |
protected java.util.Collection<org.openqa.selenium.WebElement> |
extractFrom(org.openqa.selenium.WebDriver context) |
protected abstract java.lang.String |
tagDescription() |
protected abstract java.lang.String |
tagName() |
HtmlTagFinder |
with(org.hamcrest.Matcher<org.openqa.selenium.WebElement> matcher) |
allMatching, describeTo, findFrom
protected java.util.Collection<org.openqa.selenium.WebElement> extractFrom(org.openqa.selenium.WebDriver context)
extractFrom
in class BaseFinder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver>
protected void describeTargetTo(org.hamcrest.Description description)
describeTargetTo
in class BaseFinder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver>
public HtmlTagFinder with(org.hamcrest.Matcher<org.openqa.selenium.WebElement> matcher)
with
in interface Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver>
with
in class BaseFinder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver>
protected abstract java.lang.String tagName()
protected abstract java.lang.String tagDescription()