MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / resetForTesting

Method resetForTesting

java/src/org/openqa/selenium/internal/Debug.java:197–207  ·  view source on GitHub ↗

Detaches Selenium's handler and switches debug logging off again. Only for tests.

()

Source from the content-addressed store, hash-verified

195
196 /** Detaches Selenium's handler and switches debug logging off again. Only for tests. */
197 static void resetForTesting() {
198 synchronized (LOCK) {
199 Handler handler = installedHandler;
200 if (handler != null) {
201 SELENIUM_LOGGER.removeHandler(handler);
202 handler.close();
203 installedHandler = null;
204 }
205 enabledLevel = null;
206 }
207 }
208}

Calls 2

removeHandlerMethod · 0.80
closeMethod · 0.65