shouldNotHaveElement method

FutureOr<Browser> shouldNotHaveElement(
  1. String selector
)
inherited

Laravel Dusk-style alias for assertNotPresent.

Asserts that no element matching the selector is present in the DOM.

Example:

await browser.shouldNotHaveElement('.error-message');

Implementation

FutureOr<Browser> shouldNotHaveElement(String selector) =>
    assertNotPresent(selector);