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

Method resetForTesting

java/src/org/openqa/selenium/internal/Debug.java:184–194  ·  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

182
183 /** Detaches Selenium's handler and switches debug logging off again. Only for tests. */
184 static void resetForTesting() {
185 synchronized (LOCK) {
186 Handler handler = installedHandler;
187 if (handler != null) {
188 SELENIUM_LOGGER.removeHandler(handler);
189 handler.close();
190 installedHandler = null;
191 }
192 enabledLevel = null;
193 }
194 }
195}

Calls 2

removeHandlerMethod · 0.80
closeMethod · 0.65