devtools
Version:
A Chrome DevTools protocol binding that maps WebDriver commands into Chrome DevTools commands using Puppeteer
19 lines • 1.05 kB
TypeScript
import type DevToolsDriver from '../devtoolsdriver.js';
/**
* The Find Element From Shadow Root command is used to find an element
* within the shadow root of an element that can be used for future commands.
* This command returns JSON representation of the element that can be passed
* to $ command to transform the reference to an extended WebdriverIO element.
*
* @alias browser.findElementFromShadowRoot
* @see https://w3c.github.io/webdriver/#find-element-from-shadow-root
* @param {string} using a valid element location strategy
* @param {string} value the actual selector that will be used to find an element
* @return {Object} A JSON representation of an element shadow object, e.g. `{ 'element-6066-11e4-a52e-4f735466cecf': 'ELEMENT_1' }`.
*/
export default function findElementFromShadowRoot(this: DevToolsDriver, { shadowId, using, value }: {
shadowId: string;
using: string;
value: string;
}): Promise<Error | import("@wdio/protocols").ElementReference>;
//# sourceMappingURL=findElementFromShadowRoot.d.ts.map