UNPKG

devtools

Version:

A Chrome DevTools protocol binding that maps WebDriver commands into Chrome DevTools commands using Puppeteer

21 lines 965 B
import type { ElementReference } from '@wdio/protocols'; import type DevToolsDriver from '../devtoolsdriver.js'; type FrameIdParameter = { id: null | number | ElementReference; }; /** * The Switch To Frame command is used to select the current top-level browsing context * or a child browsing context of the current browsing context to use as the current * browsing context for subsequent commands. * * @alias browser.switchToFrame * @see https://w3c.github.io/webdriver/#dfn-switch-to-frame * @param {string|object|null} id one of three possible types: null: this represents the top-level browsing context (i.e., not an iframe), a Number, representing the index of the window object corresponding to a frame, an Element object received using `findElement`. */ export default function switchToFrame(this: DevToolsDriver, { id }: FrameIdParameter): Promise<{ id: null; } | { id: string; }>; export {}; //# sourceMappingURL=switchToFrame.d.ts.map