这是我的代码,任何人都可以帮我这个忙。
先谢谢了。
public static void main(String args[]) throws IOException {
WebClient webClient = new WebClient(Browser.CHROME);
webClient.getOptions().setThrowExceptionOnScriptError(false);
HtmlPage currentPage = webClient.getPage("https://www.crowndodgechryslerjeep.com/");
String javaScriptCode = "https://www.googleadservices.com/pagead/conversion_async.js";
ScriptResult result = currentPage.executeJavaScript(javaScriptCode);
webClient.getOptions().setJavaScriptEnabled(true);
}