# getComputedRole

Get the computed WAI-ARIA label of an element.

## Usage[​](#usage "Direct link to Usage")

```
await $(selector).getComputedRole()
```

## Example[​](#example "Direct link to 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"
})
```

## Returns[​](#returns "Direct link to Returns")

* **\<String>** **`return`:** the computed WAI-ARIA label
