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

x33g5p2x  于2022-02-02 转载在 其他  
字(4.6k)|赞(0)|评价(0)|浏览(225)

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

WebClient.initialize介绍

[英]INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Initializes a new page for JavaScript.
[中]内部API-随时可能更改-使用风险自负。
初始化JavaScript的新页面。

代码示例

代码示例来源:origin: org.jvnet.hudson/htmlunit

PopupPseudoWebWindow(final WebClient webClient) {
  webClient_ = webClient;
  webClient_.initialize(this);
}

代码示例来源:origin: net.disy.htmlunit/htmlunit

PopupPseudoWebWindow(final WebClient webClient) {
  webClient_ = webClient;
  webClient_.initialize(this);
}

代码示例来源:origin: org.jenkins-ci/htmlunit

PopupPseudoWebWindow(final WebClient webClient) {
  webClient_ = webClient;
  webClient_.initialize(this);
}

代码示例来源:origin: net.disy.htmlunit/htmlunit

/**
 * {@inheritDoc}
 */
public void setEnclosedPage(final Page page) {
  if (page == enclosedPage_) {
    return;
  }
  destroyChildren();
  enclosedPage_ = page;
  history_.addPage(page);
  if (isJavaScriptInitializationNeeded()) {
    webClient_.initialize(this);
  }
  webClient_.initialize(page);
}

代码示例来源:origin: net.sourceforge.htmlunit/htmlunit

/**
 * {@inheritDoc}
 */
@Override
public void setEnclosedPage(final Page page) {
  if (LOG.isDebugEnabled()) {
    LOG.debug("setEnclosedPage: " + page);
  }
  if (page == enclosedPage_) {
    return;
  }
  destroyChildren();
  enclosedPage_ = page;
  history_.addPage(page);
  if (isJavaScriptInitializationNeeded()) {
    webClient_.initialize(this);
  }
  webClient_.initialize(page);
}

代码示例来源:origin: org.jvnet.hudson/htmlunit

/**
 * {@inheritDoc}
 */
public void setEnclosedPage(final Page page) {
  if (page == enclosedPage_) {
    return;
  }
  destroyChildren();
  enclosedPage_ = page;
  history_.addPage(page);
  if (isJavaScriptInitializationNeeded()) {
    webClient_.initialize(this);
  }
  webClient_.initialize(page);
}

代码示例来源:origin: org.jenkins-ci/htmlunit

/**
 * {@inheritDoc}
 */
public void setEnclosedPage(final Page page) {
  if (page == enclosedPage_) {
    return;
  }
  destroyChildren();
  enclosedPage_ = page;
  history_.addPage(page);
  if (isJavaScriptInitializationNeeded()) {
    webClient_.initialize(this);
  }
  webClient_.initialize(page);
}

代码示例来源:origin: HtmlUnit/htmlunit

/**
 * {@inheritDoc}
 */
@Override
public void setEnclosedPage(final Page page) {
  if (LOG.isDebugEnabled()) {
    LOG.debug("setEnclosedPage: " + page);
  }
  if (page == enclosedPage_) {
    return;
  }
  destroyChildren();
  enclosedPage_ = page;
  history_.addPage(page);
  if (isJavaScriptInitializationNeeded()) {
    webClient_.initialize(this);
  }
  webClient_.initialize(page);
}

代码示例来源:origin: net.sourceforge.htmlunit/htmlunit

/**
 * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br>
 *
 * Initializes a new empty window for JavaScript.
 *
 * @param webWindow the new WebWindow
 */
public void initializeEmptyWindow(final WebWindow webWindow) {
  WebAssert.notNull("webWindow", webWindow);
  initialize(webWindow);
  ((Window) webWindow.getScriptableObject()).initialize();
}

代码示例来源:origin: HtmlUnit/htmlunit

/**
 * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br>
 *
 * Initializes a new empty window for JavaScript.
 *
 * @param webWindow the new WebWindow
 */
public void initializeEmptyWindow(final WebWindow webWindow) {
  WebAssert.notNull("webWindow", webWindow);
  initialize(webWindow);
  ((Window) webWindow.getScriptableObject()).initialize();
}

代码示例来源:origin: org.jvnet.hudson/htmlunit

/**
 * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br/>
 *
 * Initializes a new empty window for JavaScript.
 *
 * @param webWindow the new WebWindow
 */
public void initializeEmptyWindow(final WebWindow webWindow) {
  WebAssert.notNull("webWindow", webWindow);
  if (scriptEngine_ != null) {
    initialize(webWindow);
    ((Window) webWindow.getScriptObject()).initialize();
  }
}

代码示例来源:origin: org.jenkins-ci/htmlunit

/**
 * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br/>
 *
 * Initializes a new empty window for JavaScript.
 *
 * @param webWindow the new WebWindow
 */
public void initializeEmptyWindow(final WebWindow webWindow) {
  WebAssert.notNull("webWindow", webWindow);
  if (scriptEngine_ != null) {
    initialize(webWindow);
    ((Window) webWindow.getScriptObject()).initialize();
  }
}

代码示例来源:origin: net.disy.htmlunit/htmlunit

/**
 * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br/>
 *
 * Initializes a new empty window for JavaScript.
 *
 * @param webWindow the new WebWindow
 */
public void initializeEmptyWindow(final WebWindow webWindow) {
  WebAssert.notNull("webWindow", webWindow);
  if (scriptEngine_ != null) {
    initialize(webWindow);
    ((Window) webWindow.getScriptObject()).initialize();
  }
}

相关文章

WebClient类方法