com.gargoylesoftware.htmlunit.WebClient.setJavaScriptEngine()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 JavaScript  
字(1.1k)|赞(0)|评价(0)|浏览(239)

本文整理了Java中com.gargoylesoftware.htmlunit.WebClient.setJavaScriptEngine()方法的一些代码示例,展示了WebClient.setJavaScriptEngine()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebClient.setJavaScriptEngine()方法的具体详情如下:
包路径:com.gargoylesoftware.htmlunit.WebClient
类名称:WebClient
方法名:setJavaScriptEngine

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);
  }
 }
}

相关文章

WebClient类方法