Class WebElementProxyFactory

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<org.openqa.selenium.WebElement> getWebElementListProxy​(com.google.common.base.Supplier<java.util.List<org.openqa.selenium.WebElement>> webElementListSupplier)
      Proxies a list of web elements.
      org.openqa.selenium.WebElement getWebElementProxy​(com.google.common.base.Supplier<org.openqa.selenium.WebElement> webElementSupplier)
      Proxies the WebElement which is supplied by the given webElementSupplier.
      • Methods inherited from class java.lang.Object

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

      • WebElementProxyFactory

        public WebElementProxyFactory()
    • Method Detail

      • getWebElementProxy

        public org.openqa.selenium.WebElement getWebElementProxy​(com.google.common.base.Supplier<org.openqa.selenium.WebElement> webElementSupplier)
        Proxies the WebElement which is supplied by the given webElementSupplier. The proxy implements all interfaces which webElementType implements. Prxoying the web element ensures that it is queried lazily, so you can get a web element although it might not be present on the current page.
        Parameters:
        webElementSupplier - WebElement Supplier
        Returns:
        the proxied web element
        See Also:
        SearchContextMethodInterceptor
      • getWebElementListProxy

        public java.util.List<org.openqa.selenium.WebElement> getWebElementListProxy​(com.google.common.base.Supplier<java.util.List<org.openqa.selenium.WebElement>> webElementListSupplier)
        Proxies a list of web elements. The proxied list ensures that all contained web elements are proxied by getWebElementProxy(Supplier).
        Parameters:
        webElementListSupplier - WebElement list Supplier
        Returns:
        the proxied web element list
        See Also:
        WebElementListMethodInterceptor