MCPcopy Index your code
hub / github.com/HtmlUnit/htmlunit / openWindow

Method openWindow

src/main/java/org/htmlunit/WebClient.java:1082–1085  ·  view source on GitHub ↗

Open a new window with the specified name. If the URL is non-null then attempt to load a page from that location and put it in the new window. @param url the URL to load content from or null if no content is to be loaded @param windowName the name of the new window @return the new window

(final URL url, final String windowName)

Source from the content-addressed store, hash-verified

1080 * @return the new window
1081 */
1082 public WebWindow openWindow(final URL url, final String windowName) {
1083 WebAssert.notNull("windowName", windowName);
1084 return openWindow(url, windowName, getCurrentWindow());
1085 }
1086
1087 /**
1088 * Open a new window with the specified name. If the URL is non-null then attempt to load

Callers 10

openWindowWithNullUrlMethod · 0.95
basicWindowTrackingMethod · 0.95
getTopLevelWindowsMethod · 0.95
loadWebResponseIntoMethod · 0.95
openMethod · 0.95
openLinkInNewWindowMethod · 0.45

Calls 13

notNullMethod · 0.95
getCurrentWindowMethod · 0.95
openTargetWindowMethod · 0.95
initializeEmptyWindowMethod · 0.95
getEnclosedPageMethod · 0.95
getBrowserVersionMethod · 0.95
setCharsetMethod · 0.95
getUrlMethod · 0.95
setRefererHeaderMethod · 0.95
getPageMethod · 0.95
getHtmlAcceptHeaderMethod · 0.80

Tested by 7

openWindowWithNullUrlMethod · 0.76
basicWindowTrackingMethod · 0.76
getTopLevelWindowsMethod · 0.76