final JavascriptExecutor js = (JavascriptExecutor) driver;
WebDriverUtils.waitForWindowJavaScriptVariableToBePresent(js, SAGA_NAMESPACE);
new SafeJavascriptWait(js)
.withTimeout(config.getBackgroundJavaScriptTimeout(), TimeUnit.MILLISECONDS)
.until(new Predicate<JavascriptExecutor>() {
@Override
public boolean apply(final JavascriptExecutor input) {
logger.debug("Waiting for test runner to finish");