function WebDriverTestBase::assertElementVisible
Asserts that the element with the given CSS selector is 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 147
Class
- WebDriverTestBase
- Runs a browser test using a driver that supports Javascript.
Namespace
Drupal\FunctionalJavascriptTestsCode
protected function assertElementVisible($css_selector, $message = '') {
$this->assertTrue($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.