UNPKG

webdriver

Version:

A Node.js bindings implementation for the W3C WebDriver and Mobile JSONWire Protocol

31 lines 1.48 kB
import type { Options } from '@wdio/types'; import command from './command.js'; import { DEFAULTS } from './constants.js'; import { getPrototype, getEnvironmentVars } from './utils.js'; import type { Client, AttachOptions } from './types.js'; export default class WebDriver { static newSession(options: Options.WebDriver, modifier?: (...args: any[]) => any, userPrototype?: {}, customCommandWrapper?: (...args: any[]) => any): Promise<Client>; /** * allows user to attach to existing sessions */ static attachToSession(options?: AttachOptions, modifier?: (...args: any[]) => any, userPrototype?: {}, commandWrapper?: (...args: any[]) => any): Client; /** * Changes The instance session id and browser capabilities for the new session * directly into the passed in browser object * * @param {object} instance the object we get from a new browser session. * @returns {string} the new session id of the browser */ static reloadSession(instance: Client, newCapabilities?: WebdriverIO.Capabilities): Promise<string>; static get WebDriver(): typeof WebDriver; } /** * Helper methods consumed by webdriverio package */ export { getPrototype, DEFAULTS, command, getEnvironmentVars }; export * from './types.js'; export * from './constants.js'; export * from './bidi/handler.js'; export * as local from './bidi/localTypes.js'; export * as remote from './bidi/remoteTypes.js'; //# sourceMappingURL=index.d.ts.map