UNPKG

@luminati-io/webdriverio8

Version:

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

22 lines 966 B
/** * * Get the computed WAI-ARIA label of an element. * * <example> :getComputedRole.js it('should demonstrate the getComputedRole command', async () => { await browser.url('https://www.google.com/ncr') const elem = await $('*[name="q"]'); console.log(await elem.getComputedRole()); // outputs: "combobox" }) * </example> * * @alias element.getComputedRole * @return {String} the computed WAI-ARIA label * @type property * */ export function getComputedRole() { return this.getElementComputedRole(this.elementId); } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0Q29tcHV0ZWRSb2xlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NvbW1hbmRzL2VsZW1lbnQvZ2V0Q29tcHV0ZWRSb2xlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7Ozs7OztHQWlCRztBQUNILE1BQU0sVUFBVSxlQUFlO0lBQzNCLE9BQU8sSUFBSSxDQUFDLHNCQUFzQixDQUFDLElBQUksQ0FBQyxTQUFTLENBQUMsQ0FBQTtBQUN0RCxDQUFDIn0=