public abstract class HtmlTagFinder extends BaseFinder<WebElement,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 Collection<WebElement> |
extractFrom(WebDriver context) |
protected abstract String |
tagDescription() |
protected abstract String |
tagName() |
HtmlTagFinder |
with(org.hamcrest.Matcher<WebElement> matcher) |
allMatching, describeTo, findFromprotected Collection<WebElement> extractFrom(WebDriver context)
extractFrom in class BaseFinder<WebElement,WebDriver>protected void describeTargetTo(org.hamcrest.Description description)
describeTargetTo in class BaseFinder<WebElement,WebDriver>public HtmlTagFinder with(org.hamcrest.Matcher<WebElement> matcher)
with in interface Finder<WebElement,WebDriver>with in class BaseFinder<WebElement,WebDriver>protected abstract String tagName()
protected abstract String tagDescription()
Copyright © 2013. All rights reserved.