Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Assertions

assertVisible

Assert whether an element is visible.

- assertVisible: $order-online-btn
- assertVisible:
    selector: $order-online-btn
    text: Order online
    index: 2

assertNotVisible

Assert whether an element is not visible.

- assertNotVisible: $order-online-btn
- assertNotVisible:
    selector: $order-online-btn
    text: Order online
    index: 2

assertExist

Assert whether an element exists in the DOM.

- assertExist: $order-online-btn
- assertExist:
    selector: $order-online-btn
    text: Order online
    index: 2
    count: 10

assertNotExist

Assert whether an element does not exist in the DOM.

- assertNotExist: $order-online-btn
- assertNotExist:
    selector: $order-online-btn
    text: Order online
    index: 2
    count: 10