void () { JBCefBrowser browser = JBCefBrowser.createBuilder() .setOffScreenRendering(true) .build(); JBCefJSQuery jsQuery = JBCefJSQuery.create((JBCefBrowserBase)browser); browser.createImmediately(); doTest(browser, jsQuery); }