All Downloads are FREE. Search and download functionalities are using the official Maven repository.

au.com.agic.apptesting.utils.JavaScriptRunner Maven / Gradle / Ivy

package au.com.agic.apptesting.utils;

import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebElement;

import javax.validation.constraints.NotNull;

/**
 * Services for running JavaScript
 */
public interface JavaScriptRunner {
	/**
	 * use JavaScript to simulate a click on an element
	 *
	 * @param element The element to click
	 * @param event   The type of event to simulate
	 * @param js      The JavaScript executor
	 */
	void interactHiddenElement(
		@NotNull final WebElement element,
		@NotNull final String event,
		@NotNull final JavascriptExecutor js);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy