Interface HasCallFunction

  • All Superinterfaces:
    org.openqa.selenium.SearchContext, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.WebElement
    All Known Implementing Classes:
    TestBenchElement

    public interface HasCallFunction
    extends org.openqa.selenium.WebElement
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Object callFunction​(String methodName, Object... args)
      Invoke the given method on this element using the given arguments as arguments to the method.
      • Methods inherited from interface org.openqa.selenium.TakesScreenshot

        getScreenshotAs
      • Methods inherited from interface org.openqa.selenium.WebElement

        clear, click, findElement, findElements, getAccessibleName, getAriaRole, getAttribute, getCssValue, getDomAttribute, getDomProperty, getLocation, getRect, getShadowRoot, getSize, getTagName, getText, isDisplayed, isEnabled, isSelected, sendKeys, submit
    • Method Detail

      • callFunction

        Object callFunction​(String methodName,
                            Object... args)
        Invoke the given method on this element using the given arguments as arguments to the method.
        Parameters:
        methodName - the method to invoke
        args - the arguments to pass to the method
        Returns:
        the value returned by the method