com.vaadin.testbench.HasCallFunction Maven / Gradle / Ivy
/**
* Copyright (C) 2000-2022 Vaadin Ltd
*
* This program is available under Vaadin Commercial License and Service Terms.
*
* See for the full
* license.
*/
package com.vaadin.testbench;
import org.openqa.selenium.WebElement;
public interface HasCallFunction extends WebElement {
/**
* Invoke the given method on this element using the given arguments as
* arguments to the method.
*
* @param methodName
* the method to invoke
* @param args
* the arguments to pass to the method
* @return the value returned by the method
*/
public Object callFunction(String methodName, Object... args);
}