public function WebDriverTestBase::assertSession in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php \Drupal\FunctionalJavascriptTests\WebDriverTestBase::assertSession()
- 9 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\Tests\WebAssert A new web-assert option for asserting the presence of elements with.
Overrides UiHelperTrait::assertSession
63 calls to WebDriverTestBase::assertSession()
- AjaxCallbacksTest::testDateAjaxCallback in core/
tests/ Drupal/ FunctionalJavascriptTests/ Ajax/ AjaxCallbacksTest.php - Tests if Ajax callback works on date element.
- AjaxCallbacksTest::testDateTimeAjaxCallback in core/
tests/ Drupal/ FunctionalJavascriptTests/ Ajax/ AjaxCallbacksTest.php - Tests if Ajax callback works on datetime element.
- AjaxFormCacheTest::testBlockForms in core/
tests/ Drupal/ FunctionalJavascriptTests/ Ajax/ AjaxFormCacheTest.php - Tests AJAX forms in blocks.
- AjaxFormCacheTest::testQueryString in core/
tests/ Drupal/ FunctionalJavascriptTests/ Ajax/ AjaxFormCacheTest.php - Tests AJAX forms on pages with a query string.
- AjaxFormImageButtonTest::testAjaxImageButtonKeypressEnter in core/
tests/ Drupal/ FunctionalJavascriptTests/ Ajax/ AjaxFormImageButtonTest.php - Tests image buttons can be operated with the keyboard ENTER key.
File
- core/
tests/ Drupal/ FunctionalJavascriptTests/ WebDriverTestBase.php, line 196
Class
- WebDriverTestBase
- Runs a browser test using a driver that supports JavaScript.
Namespace
Drupal\FunctionalJavascriptTestsCode
public function assertSession($name = NULL) {
return new WebDriverWebAssert($this
->getSession($name), $this->baseUrl);
}