Skip to main content
Version: 0.18.1

notExists

production

Expects that filtered element not exists.

Always use together with expect().

Note Throws an error and stops the execution when the element is found. You can catch the error and decide what to do as in the examples below.

Examples:

// Stops execution at this point when the element does exist.
await aui.expect().text('Login').notExists().exec()

// This will catch the error and log a message
// But the execution will continue afterwards
try {
await aui.expect().text('Login').notExists().exec()
} catch (error) {
console.log('Too bad we could find the element!');
}