UNPKG

webdriver

Version:

A Node.js bindings implementation for the W3C WebDriver and WebDriver Bidi protocols

16 lines • 946 B
/** * `true` for the error of a command that can get no result because its session or its * WebDriver BiDi connection ended: a WebDriver BiDi command in flight or sent when the * connection closed, a command after `deleteSession`, or the `invalid session id` error * of a driver. Code that sends a command in the background (e.g. an event listener) can * ignore it at the end of a session. */ export declare function isSessionEndedError(err: unknown): boolean; /** * `true` when the WebDriver BiDi connection of a client was open and is closed now, e.g. * after `deleteSession`. Then any command of the session can fail, also with a transport * error (a WebDriver Classic request to a driver that `deleteSession` stopped). A client * whose WebDriver BiDi connection could not be made, or without one, gives `false`. */ export declare function isBidiConnectionClosed(client: unknown): boolean; //# sourceMappingURL=sessionEnded.d.ts.map