webdriver
Version:
A Node.js bindings implementation for the W3C WebDriver and Mobile JSONWire Protocol
15 lines • 688 B
TypeScript
import WebSocket from 'ws';
export declare function createBidiConnection(webSocketUrl: string, options?: unknown): Promise<WebSocket | undefined>;
/**
* Resolve hostnames to IPv4 and IPv6 addresses
* @returns list of websocket urls to try
* @see https://github.com/webdriverio/webdriverio/issues/14039
*/
export declare function listWebsocketCandidateUrls(webSocketUrl: string): Promise<string[]>;
/**
* Connect to a websocket
* @param candidateUrls - list of websocket urls to try
* @returns true if the connection was successful
*/
export declare function connectWebsocket(candidateUrls: string[], _?: unknown): Promise<WebSocket | undefined>;
//# sourceMappingURL=bidi.d.ts.map