Class ElementInstanceLocator

  • All Implemented Interfaces:
    org.openqa.selenium.support.pagefactory.ElementLocator, org.openqa.selenium.WrapsElement

    public class ElementInstanceLocator
    extends ElementSupplierLocator
    implements org.openqa.selenium.WrapsElement
    ElementLocator for an already found WebElement instance.
    • Constructor Detail

      • ElementInstanceLocator

        public ElementInstanceLocator​(org.openqa.selenium.WebElement element)
        Creates a new element instance locator
        Parameters:
        element - element instance
    • Method Detail

      • getWrappedElement

        public org.openqa.selenium.WebElement getWrappedElement()
        Specified by:
        getWrappedElement in interface org.openqa.selenium.WrapsElement