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

org.fluentlenium.core.script.JavascriptControl Maven / Gradle / Ivy

package org.fluentlenium.core.script;

/**
 * Control interface to execute script, synchronously or asynchronously.
 */
public interface JavascriptControl {

    /**
     * Execute a script, synchronously.
     *
     * @param script script source to execute
     * @param args   script arguments
     * @return an object wrapping the result
     */
    FluentJavascript executeScript(String script, Object... args);

    /**
     * Execute a script, asynchronously.
     *
     * @param script script source to execute
     * @param args   script arguments
     * @return an object wrapping the result
     */
    FluentJavascript executeAsyncScript(String script, Object... args);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy