protected function OffCanvasTestBase::waitForNoElement in Drupal 8
Waits for an element to be removed from the page.
Parameters
string $selector: CSS selector.
int $timeout: (optional) Timeout in milliseconds, defaults to 10000.
Deprecated
in drupal:8.8.0 and is removed from drupal:9.0.0. Use Drupal\FunctionalJavascriptTests\JSWebAssert::assertNoElementAfterWait()
File
- core/
modules/ system/ tests/ src/ FunctionalJavascript/ OffCanvasTestBase.php, line 109
Class
- OffCanvasTestBase
- Base class contains common test functionality for the Off-canvas dialog.
Namespace
Drupal\Tests\system\FunctionalJavascriptCode
protected function waitForNoElement($selector, $timeout = 10000) {
@trigger_error('::waitForNoElement is deprecated in Drupal 8.8.0 and will be removed before Drupal 9.0.0. Use \\Drupal\\FunctionalJavascriptTests\\JSWebAssert::assertNoElementAfterWait() instead.', E_USER_DEPRECATED);
$this
->assertSession()
->assertNoElementAfterWait('css', $selector, $timeout);
}