Class XPathFinder

  • All Implemented Interfaces:
    org.hamcrest.SelfDescribing, Finder<org.openqa.selenium.WebElement,​org.openqa.selenium.WebDriver>

    public class XPathFinder
    extends BaseFinder<org.openqa.selenium.WebElement,​org.openqa.selenium.WebDriver>
    A Finder for elements using XPath expressions
    • Constructor Summary

      Constructors 
      Constructor Description
      XPathFinder​(java.lang.String xpath)  
    • Method Summary

      All Methods Instance 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XPathFinder

        public XPathFinder​(java.lang.String xpath)
    • Method Detail

      • extractFrom

        protected java.util.Collection<org.openqa.selenium.WebElement> extractFrom​(org.openqa.selenium.WebDriver context)
        Specified by:
        extractFrom in class BaseFinder<org.openqa.selenium.WebElement,​org.openqa.selenium.WebDriver>
      • describeTargetTo

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