Class ElementLocatorSearchContext

  • All Implemented Interfaces:
    org.openqa.selenium.SearchContext

    public class ElementLocatorSearchContext
    extends java.lang.Object
    implements org.openqa.selenium.SearchContext
    Search context backed by an ElementLocator.
    • Constructor Summary

      Constructors 
      Constructor Description
      ElementLocatorSearchContext​(org.openqa.selenium.support.pagefactory.ElementLocator locator)
      Creates a new element locator search context.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.openqa.selenium.WebElement findElement​(org.openqa.selenium.By by)  
      java.util.List<org.openqa.selenium.WebElement> findElements​(org.openqa.selenium.By by)  
      • Methods inherited from class java.lang.Object

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

      • ElementLocatorSearchContext

        public ElementLocatorSearchContext​(org.openqa.selenium.support.pagefactory.ElementLocator locator)
        Creates a new element locator search context.
        Parameters:
        locator - element locator
    • Method Detail

      • findElements

        public java.util.List<org.openqa.selenium.WebElement> findElements​(org.openqa.selenium.By by)
        Specified by:
        findElements in interface org.openqa.selenium.SearchContext
      • findElement

        public org.openqa.selenium.WebElement findElement​(org.openqa.selenium.By by)
        Specified by:
        findElement in interface org.openqa.selenium.SearchContext