function WebDriverTestBase::drupalGet
Same name and namespace in other branches
- 11.x core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php \Drupal\FunctionalJavascriptTests\WebDriverTestBase::drupalGet()
128 calls to WebDriverTestBase::drupalGet()
- 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.
- AssetAggregationAcrossPagesTest::doRequests in core/
profiles/ demo_umami/ tests/ src/ FunctionalJavascript/ AssetAggregationAcrossPagesTest.php - Performs a common set of requests so the above test methods stay in sync.
- AssetAggregationAcrossPagesTest::testNodeAddPagesAuthor in core/
profiles/ demo_umami/ tests/ src/ FunctionalJavascript/ AssetAggregationAcrossPagesTest.php - Checks the node/add page asset requests as an author.
- BlockFilterTest::testBlockFilter in core/
modules/ layout_builder/ tests/ src/ FunctionalJavascript/ BlockFilterTest.php - Tests block filter.
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.