function WebDriverTestBase::assertSession
Same name and namespace in other branches
- 11.x core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php \Drupal\FunctionalJavascriptTests\WebDriverTestBase::assertSession()
- 10 core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php \Drupal\FunctionalJavascriptTests\WebDriverTestBase::assertSession()
- 9 core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php \Drupal\FunctionalJavascriptTests\WebDriverTestBase::assertSession()
- 8.9.x core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php \Drupal\FunctionalJavascriptTests\WebDriverTestBase::assertSession()
Returns WebAssert object.
Parameters
string $name: (optional) Name of the session. Defaults to the active session.
Return value
\Drupal\FunctionalJavascriptTests\WebDriverWebAssert A new web-assert option for asserting the presence of elements with.
Overrides UiHelperTrait::assertSession
317 calls to WebDriverTestBase::assertSession()
- AdminAjaxTest::testAjaxRebuild in core/
modules/ views_ui/ tests/ src/ FunctionalJavascript/ AdminAjaxTest.php - Confirms that form_alter is triggered after AJAX rebuilds.
- AdminCompactModeTest::testAdminCompactMode in core/
modules/ system/ tests/ src/ FunctionalJavascript/ AdminCompactModeTest.php - Tests that filter results announcement has correct pluralization.
- AdminUiTest::testFilterCheckboxesToggleSettings in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ AdminUiTest.php - Test that filter settings are only visible when the filter is enabled.
- AdminUiTest::testImageUploadSettingsAreValidated in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ AdminUiTest.php - Tests that image upload settings (stored out of band) are validated too.
- AdminUiTest::testLanguageConfigForm in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ AdminUiTest.php - Tests the language config form.
File
-
core/
tests/ Drupal/ FunctionalJavascriptTests/ WebDriverTestBase.php, line 197
Class
- WebDriverTestBase
- Runs a browser test using a driver that supports JavaScript.
Namespace
Drupal\FunctionalJavascriptTestsCode
public function assertSession($name = NULL) : WebAssert {
return new WebDriverWebAssert($this->getSession($name), $this->baseUrl);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.