```
        .waitForVisibleByCssSelector('#stage .error', 5000)
        .elementByCssSelector('#stage .error').isDisplayed()
        .then(function (isDisplayed) {
          assert.equal(isDisplayed, true);
        });
```