# getElement

Access `WebdriverIO.Element` properties like `selector` or `elementId` from the element reference.

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

```
await $(selector).getElement()
```

## Example[​](#example "Direct link to Example")

getElement.ts

```
it('should allow me to inspect WebdriverIO.Element properties', async () => {
    const elem = await $('#elem').getElement();
    console.log(elem.selector); // outputs: '#elem'
});
```

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

* **\<WebdriverIO.Element>**
