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

rhino.bootstrap.js Maven / Gradle / Ivy

There is a newer version: 0.9.6
Show newest version
importPackage(java.lang);
importPackage(java.util.concurrent);

importPackage(org.openqa.selenium);
importPackage(org.openqa.selenium.chrome);
importPackage(org.openqa.selenium.ie);
importPackage(org.openqa.selenium.firefox);
importPackage(org.openqa.selenium.remote);

importPackage(com.vilt.minium);
importPackage(com.vilt.minium.script);

var MILLISECONDS = TimeUnit.MILLISECONDS;
var SECONDS      = TimeUnit.SECONDS;
var MINUTES      = TimeUnit.MINUTES;
var HOURS        = TimeUnit.HOURS;
var DAYS         = TimeUnit.DAYS;

function createMethodsFn(obj) {
	for(var fn in obj) {
		if (typeof obj[fn] === 'function') {
			this[fn] = (function() {
				var method = obj[fn];
				return function() {
					return method.apply(obj, arguments);
				};
			})();
		}
	}
}

function importStatic(obj) {
	createMethodsFn(obj);
}

if (typeof webElementsDriverFactory !== "undefined") {
    // all methods from webElementsDriverFactory
    createMethodsFn(webElementsDriverFactory);
    delete webElementsDriverFactory;
}
	
// all static methods from Minium, Interactions and TouchInteractions
importStatic(com.vilt.minium.Minium);
importStatic(com.vilt.minium.actions.Interactions);
importStatic(com.vilt.minium.actions.DebugInteractions);
importStatic(com.vilt.minium.actions.TipInteractions);
importStatic(com.vilt.minium.actions.touch.TouchInteractions);

var logger = org.slf4j.LoggerFactory.getLogger("com.vilt.minium.script.Console");




© 2015 - 2025 Weber Informatics LLC | Privacy Policy