Package org.openqa.selenium.lift.find
Class HtmlTagFinder
- java.lang.Object
-
- org.openqa.selenium.lift.find.BaseFinder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver>
-
- org.openqa.selenium.lift.find.HtmlTagFinder
-
- All Implemented Interfaces:
org.hamcrest.SelfDescribing
,Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver>
- Direct Known Subclasses:
DivFinder
,ImageFinder
,InputFinder
,LinkFinder
,PageTitleFinder
,TableCellFinder
,TableFinder
public abstract class HtmlTagFinder extends BaseFinder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver>
BaseFinder
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.
-
-
Field Summary
-
Fields inherited from class org.openqa.selenium.lift.find.BaseFinder
matchers
-
-
Constructor Summary
Constructors Constructor Description HtmlTagFinder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class org.openqa.selenium.lift.find.BaseFinder
allMatching, describeTo, findFrom
-
-
-
-
Method Detail
-
extractFrom
protected java.util.Collection<org.openqa.selenium.WebElement> extractFrom(org.openqa.selenium.WebDriver context)
- Specified by:
extractFrom
in classBaseFinder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver>
-
describeTargetTo
protected void describeTargetTo(org.hamcrest.Description description)
- Specified by:
describeTargetTo
in classBaseFinder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver>
-
with
public HtmlTagFinder with(org.hamcrest.Matcher<org.openqa.selenium.WebElement> matcher)
- Specified by:
with
in interfaceFinder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver>
- Overrides:
with
in classBaseFinder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver>
-
tagName
protected abstract java.lang.String tagName()
-
tagDescription
protected abstract java.lang.String tagDescription()
-
-