function WebDriverTestBase::drupalGet
Same name and namespace in other branches
- 11.x core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php \Drupal\FunctionalJavascriptTests\WebDriverTestBase::drupalGet()
246 calls to WebDriverTestBase::drupalGet()
- AdminUiTest::testImageUploadSettingsAreValidated in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ AdminUiTest.php - Tests that image upload settings (stored out of band) are validated too.
- AdminUiTest::testMessagesDoNotAccumulate in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ AdminUiTest.php - Ensure CKEditor 5 admin UI's real-time validation errors do not accumulate.
- AdminUiTest::testSettingsOnlyFireAjaxWithCkeditor5 in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ AdminUiTest.php - Confirm settings only trigger AJAX when select value is CKEditor 5.
- AjaxBlockTest::testAddAjaxBlock in core/
modules/ layout_builder/ tests/ src/ FunctionalJavascript/ AjaxBlockTest.php - Tests configuring a field block for a user field.
- AjaxFileManagedMultipleTest::testMultipleFilesUpload in core/
modules/ file/ tests/ src/ FunctionalJavascript/ AjaxFileManagedMultipleTest.php - Tests if managed file form element works well with multiple files upload.
File
-
core/
tests/ Drupal/ FunctionalJavascriptTests/ WebDriverTestBase.php, line 202
Class
- WebDriverTestBase
- Runs a browser test using a driver that supports JavaScript.
Namespace
Drupal\FunctionalJavascriptTestsCode
protected function drupalGet($path, array $options = [], array $headers = []) {
$result = parent::drupalGet($path, $options, $headers);
// Wait for all requests to finish.
$this->getSession()
->wait(5000, 'window.drupalActiveXhrCount === 0 || typeof window.drupalActiveXhrCount === "undefined"');
// Process Javascript deprecations.
$driver = $this->getSession()
->getDriver();
assert($driver instanceof DrupalSelenium2Driver);
$driver->processJavascriptDeprecations();
return $result;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.