public JasmineResult execute(URL runnerUrl, File junitXmlReport, WebDriver driver, int timeout, boolean debug, Log log, String format) {
try {
if (!(driver instanceof JavascriptExecutor)) {
throw new RuntimeException("The provided web driver can't execute JavaScript: " + driver.getClass());
}
JavascriptExecutor executor = (JavascriptExecutor) driver;
driver.get(runnerUrl.toString());
this.waitForRunnerToFinish(driver, timeout, debug, log);
this.checkForConsoleErrors(driver, log);