void () { JBCefClient client = JBCefApp.getInstance().createClient(); client.setProperty(JBCefClient.Properties.JS_QUERY_POOL_SIZE, 1); JBCefOsrHandlerBrowser browser = JBCefOsrHandlerBrowser.create("", new MyRenderHandler(), client); JBCefJSQuery jsQuery = JBCefJSQuery.create(browser); doTest(browser, jsQuery); }