function WebDriverTestBase::assertElementNotVisible

Asserts that the element with the given CSS selector is not visible.

Parameters

string $css_selector: The CSS selector identifying the element to check.

string $message: Optional message to show alongside the assertion.

Deprecated

in drupal:8.1.0 and is removed from drupal:9.0.0. Use \Behat\Mink\Element\NodeElement::isVisible() instead.

File

core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php, line 163

Class

WebDriverTestBase
Runs a browser test using a driver that supports Javascript.

Namespace

Drupal\FunctionalJavascriptTests

Code

protected function assertElementNotVisible($css_selector, $message = '') {
    $this->assertFalse($this->getSession()
        ->getDriver()
        ->isVisible($this->cssSelectToXpath($css_selector)), $message);
    @trigger_error('The ' . __METHOD__ . ' method is deprecated since version 8.1.0 and will be removed in 9.0.0. Use \\Behat\\Mink\\Element\\NodeElement::isVisible() instead.', E_USER_DEPRECATED);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.