UNPKG

webdriverio

Version:

Next-gen browser and mobile automation test framework for Node.js

10 lines • 677 B
import { type remote, type local } from 'webdriver'; /** * `execute` in an explicit browsing context. Element references in `args` * are only valid in the context they were found in, so use this when the * caller knows that context but only holds element ids. */ export declare function executeInContext<ReturnValue>(browser: WebdriverIO.Browser, context: string, script: string | Function, ...args: unknown[]): Promise<ReturnValue>; export declare function parseScriptResult(params: remote.ScriptCallFunctionParameters, result: local.ScriptEvaluateResult): any; export declare function deserialize(result: remote.ScriptLocalValue): any; //# sourceMappingURL=index.d.ts.map