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

Method close

java/src/org/openqa/selenium/bidi/BiDi.java:62–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60 }
61
62 @Override
63 public void close() {
64 try {
65 clearListeners();
66 } catch (WebDriverException e) {
67 LOG.warning(() -> "Failed to clear BiDi listeners: " + e);
68 }
69
70 disconnectSession();
71
72 try {
73 connection.close();
74 } catch (WebDriverException e) {
75 LOG.warning(() -> "Failed to close BiDi connection: " + e);
76 }
77 }
78
79 public void disconnectSession() {
80 // TODO: Identify how to close a BiDi session.

Callers

nothing calls this directly

Calls 4

clearListenersMethod · 0.95
disconnectSessionMethod · 0.95
warningMethod · 0.80
closeMethod · 0.65

Tested by

no test coverage detected