# isEqual

Return true if the selected element matches with the provided one.

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

```
await $(selector).isEqual(el)
```

## Parameters[​](#parameters "Direct link to Parameters")

| Name | Type      | Details                 |
| ---- | --------- | ----------------------- |
| `el` | `Element` | element to compare with |

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

isEqual.js

```
it('should detect if an element is clickable', async () => {
    const el = await $('#el')
    const sameEl = await $('#el')
    const anotherEl = await $('#anotherEl')

    el.isEqual(sameEl) // outputs: true

    el.isEqual(anotherEl) // outputs: false
});
```

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

* **\<Boolean>** **`return`:** true if elements are equal
