org.openqa.selenium.lift.find
Class HtmlTagFinder

java.lang.Object
  extended by org.openqa.selenium.lift.find.BaseFinder<WebElement,WebDriver>
      extended by org.openqa.selenium.lift.find.HtmlTagFinder
All Implemented Interfaces:
org.hamcrest.SelfDescribing, Finder<WebElement,WebDriver>
Direct Known Subclasses:
DivFinder, ImageFinder, InputFinder, LinkFinder, PageTitleFinder, TableCellFinder, TableFinder

public abstract class HtmlTagFinder
extends BaseFinder<WebElement,WebDriver>

Base 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.


Field Summary
 
Fields inherited from class org.openqa.selenium.lift.find.BaseFinder
matchers
 
Constructor Summary
HtmlTagFinder()
           
 
Method Summary
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)
           
 
Methods inherited from class org.openqa.selenium.lift.find.BaseFinder
allMatching, describeTo, findFrom
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlTagFinder

public HtmlTagFinder()
Method Detail

extractFrom

protected Collection<WebElement> extractFrom(WebDriver context)
Specified by:
extractFrom in class BaseFinder<WebElement,WebDriver>

describeTargetTo

protected void describeTargetTo(org.hamcrest.Description description)
Specified by:
describeTargetTo in class BaseFinder<WebElement,WebDriver>

with

public HtmlTagFinder with(org.hamcrest.Matcher<WebElement> matcher)
Specified by:
with in interface Finder<WebElement,WebDriver>
Overrides:
with in class BaseFinder<WebElement,WebDriver>

tagName

protected abstract String tagName()

tagDescription

protected abstract String tagDescription()


Copyright © 2013. All Rights Reserved.