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

Method getWebWindowByName

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

Returns the first WebWindow that matches the specified name. @param name the name to search for @return the WebWindow with the specified name @throws WebWindowNotFoundException if the WebWindow can't be found @see #getWebWindows() @see #getTopLevelWindows()

(final String name)

Source from the content-addressed store, hash-verified

1270 * @see #getTopLevelWindows()
1271 */
1272 public WebWindow getWebWindowByName(final String name) throws WebWindowNotFoundException {
1273 WebAssert.notNull("name", name);
1274
1275 for (final WebWindow webWindow : windows_) {
1276 if (name.equals(webWindow.getName())) {
1277 return webWindow;
1278 }
1279 }
1280
1281 throw new WebWindowNotFoundException(name);
1282 }
1283
1284 /**
1285 * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br>

Callers 10

openWindow_blankMethod · 0.95
openWindow_topMethod · 0.95
openWindow_parentMethod · 0.95
parentAndTopMethod · 0.95
loadingFrameSetMethod · 0.95
loadingIFramesMethod · 0.95
resolveWindowMethod · 0.95
openMethod · 0.95

Calls 3

notNullMethod · 0.95
getNameMethod · 0.65
equalsMethod · 0.45

Tested by 8

openWindow_blankMethod · 0.76
openWindow_topMethod · 0.76
openWindow_parentMethod · 0.76
parentAndTopMethod · 0.76
loadingFrameSetMethod · 0.76
loadingIFramesMethod · 0.76