本文整理了Java中com.gargoylesoftware.htmlunit.WebClient.setJavaScriptEngine()
方法的一些代码示例,展示了WebClient.setJavaScriptEngine()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebClient.setJavaScriptEngine()
方法的具体详情如下:
包路径:com.gargoylesoftware.htmlunit.WebClient
类名称:WebClient
方法名:setJavaScriptEngine
[英]This method is intended for testing only - use at your own risk.
[中]本方法仅供测试使用,使用风险自负。
代码示例来源:origin: net.wetheinter/gwt-user
protected void setupWebClient(WebClient webClient) {
if (developmentMode) {
JavaScriptEngine hostedEngine = new HostedJavaScriptEngine(webClient,
treeLogger);
webClient.setJavaScriptEngine(hostedEngine);
}
if (System.getProperty("gwt.htmlunit.debug") != null) {
WebClientUtils.attachVisualDebugger(webClient);
}
}
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
protected void setupWebClient(WebClient webClient) {
if (developmentMode) {
JavaScriptEngine hostedEngine = new HostedJavaScriptEngine(webClient,
treeLogger);
webClient.setJavaScriptEngine(hostedEngine);
}
if (System.getProperty("gwt.htmlunit.debug") != null) {
WebClientUtils.attachVisualDebugger(webClient);
}
}
}
内容来源于网络,如有侵权,请联系作者删除!