isEqual
選択された要素が指定された要素と一致する場合はtrueを返します。
使用方法
$(selector).isEqual(el)
パラメータ
| 名前 | 型 | 詳細 | 
|---|---|---|
| el | 要素 | 比較する要素 | 
例
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
});