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 Collection<org.openqa.selenium.WebElement> |
extractFrom(org.openqa.selenium.WebDriver context) |
protected abstract String |
tagDescription() |
protected abstract String |
tagName() |
HtmlTagFinder |
with(org.hamcrest.Matcher<org.openqa.selenium.WebElement> matcher) |
allMatching, describeTo, findFrom
protected 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 String tagName()
protected abstract String tagDescription()
Copyright © 2016. All rights reserved.