UNPKG

1.56 kBTypeScriptView Raw
1import type { Capabilities } from '@wdio/types';
2import command from './command.js';
3import { DEFAULTS } from './constants.js';
4import { getPrototype, getEnvironmentVars, initiateBidi, parseBidiMessage } from './utils.js';
5import type { Client, AttachOptions } from './types.js';
6export default class WebDriver {
7 static newSession(options: Capabilities.RemoteConfig, modifier?: (...args: any[]) => any, userPrototype?: {}, customCommandWrapper?: (...args: any[]) => any): Promise<Client>;
8 /**
9 * allows user to attach to existing sessions
10 */
11 static attachToSession(options?: AttachOptions, modifier?: (...args: any[]) => any, userPrototype?: {}, commandWrapper?: (...args: any[]) => any): Client;
12 /**
13 * Changes The instance session id and browser capabilities for the new session
14 * directly into the passed in browser object
15 *
16 * @param {object} instance the object we get from a new browser session.
17 * @returns {string} the new session id of the browser
18 */
19 static reloadSession(instance: Client, newCapabilities?: WebdriverIO.Capabilities): Promise<string>;
20 static get WebDriver(): typeof WebDriver;
21}
22/**
23 * Helper methods consumed by webdriverio package
24 */
25export { getPrototype, DEFAULTS, command, getEnvironmentVars, initiateBidi, parseBidiMessage };
26export * from './types.js';
27export * from './constants.js';
28export * from './bidi/handler.js';
29export * as local from './bidi/localTypes.js';
30export * as remote from './bidi/remoteTypes.js';
31//# sourceMappingURL=index.d.ts.map
\No newline at end of file