function JSWebAssert::waitForElementRemoved
Same name in other branches
- 8.9.x core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php \Drupal\FunctionalJavascriptTests\JSWebAssert::waitForElementRemoved()
- 10 core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php \Drupal\FunctionalJavascriptTests\JSWebAssert::waitForElementRemoved()
- 11.x core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php \Drupal\FunctionalJavascriptTests\JSWebAssert::waitForElementRemoved()
Looks for the specified selector and returns TRUE when it is unavailable.
Parameters
string $selector: The selector engine name. See ElementInterface::findAll() for the supported selectors.
string|array $locator: The selector locator.
int $timeout: (Optional) Timeout in milliseconds, defaults to 10000.
Return value
bool TRUE if not found, FALSE if found.
See also
\Behat\Mink\Element\ElementInterface::findAll()
File
-
core/
tests/ Drupal/ FunctionalJavascriptTests/ JSWebAssert.php, line 95
Class
- JSWebAssert
- Defines a class with methods for asserting presence of elements during tests.
Namespace
Drupal\FunctionalJavascriptTestsCode
public function waitForElementRemoved($selector, $locator, $timeout = 10000) {
return (bool) $this->waitForHelper($timeout, function (Element $page) use ($selector, $locator) {
return !$page->find($selector, $locator);
});
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.