MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / close

Method close

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

Source from the content-addressed store, hash-verified

52 }
53
54 @Override
55 public void close() {
56 try {
57 clearListeners();
58 } catch (WebDriverException e) {
59 LOG.warning(() -> "Failed to clear BiDi listeners: " + e);
60 }
61
62 disconnectSession();
63
64 try {
65 connection.close();
66 } catch (WebDriverException e) {
67 LOG.warning(() -> "Failed to close BiDi connection: " + e);
68 }
69 }
70
71 public void disconnectSession() {
72 // TODO: Identify how to close a BiDi session.

Callers 1

Calls 4

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

Tested by 1