()
| 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. |
nothing calls this directly
no test coverage detected