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

Method quit

src/test/java/org/htmlunit/WebDriverTestCase.java:443–461  ·  view source on GitHub ↗
(final WebDriver driver)

Source from the content-addressed store, hash-verified

441 }
442
443 private static void quit(final WebDriver driver) {
444 if (driver != null) {
445 try {
446 driver.quit();
447 }
448 catch (final UnreachableBrowserException e) {
449 LOG.error("Can't quit browser", e);
450 // ignore, the browser is gone
451 }
452 catch (final NoClassDefFoundError e) {
453 LOG.error("Can't quit browser", e);
454 // ignore, the browser is gone
455 }
456 catch (final UnsatisfiedLinkError e) {
457 LOG.error("Can't quit browser", e);
458 // ignore, the browser is gone
459 }
460 }
461 }
462
463 /**
464 * Asserts all static servers are null.

Callers 4

shutDownRealBrowsersMethod · 0.95
shutDownRealMethod · 0.95
shutDownAllMethod · 0.80
releaseResourcesMethod · 0.80

Calls 1

errorMethod · 0.65

Tested by

no test coverage detected