src/Codeception/Module/WPBrowserMethods.php
public function seeErrorMessage($classes = '')
    {
        $classes = (array)$classes;
        $classes = implode('.', $classes);

        $this->seeElement('.notice.notice-error' . ($classes ?: ''));
    }
public function seeErrorMessage($classes = '')
    {
        $classes = (array)$classes;
        $classes = implode('.', $classes);

        $this->seeElement('.notice.notice-error' . ($classes ?: ''));
    }
public function seeErrorMessage ( $ classes = '' ) { $ classes = ( array ) $ classes ; $ classes = implode ( '.' , $ classes ) ; $ this -> seeElement ( '.notice.notice-error' . ( $ classes ? : '' ) ) ; }
In an administration screen look for an error admin notice.

The check is class-based to decouple from internationalization.
The method will **not** handle authentication and navigation the administration area.

@example
```php
$I->loginAsAdmin()ja
$I->amOnAdminPage('/');
$I->seeErrorMessage('.my-plugin');
```

@param array|string $classes A list of classes the notice should have other than the `.notice.notice-error` ones.
In an administration screen look for an error admin notice .