28 calls to AssertContentTrait::xpath()

AssertContentTrait::assertFieldByXPath in core/tests/Drupal/KernelTests/AssertContentTrait.php
Asserts that a field exists in the current page by the given XPath.
AssertContentTrait::assertFieldChecked in core/tests/Drupal/KernelTests/AssertContentTrait.php
Asserts that a checkbox field in the current page is checked.
AssertContentTrait::assertLink in core/tests/Drupal/KernelTests/AssertContentTrait.php
Passes if a link with the specified label is found.
AssertContentTrait::assertLinkByHref in core/tests/Drupal/KernelTests/AssertContentTrait.php
Passes if a link containing a given href (part) is found.
AssertContentTrait::assertNoDuplicateIds in core/tests/Drupal/KernelTests/AssertContentTrait.php
Asserts that each HTML ID is used for just a single element.
AssertContentTrait::assertNoFieldByXPath in core/tests/Drupal/KernelTests/AssertContentTrait.php
Asserts that a field does not exist or its value does not match, by XPath.
AssertContentTrait::assertNoFieldChecked in core/tests/Drupal/KernelTests/AssertContentTrait.php
Asserts that a checkbox field in the current page is not checked.
AssertContentTrait::assertNoLink in core/tests/Drupal/KernelTests/AssertContentTrait.php
Passes if a link with the specified label is not found.
AssertContentTrait::assertNoLinkByHref in core/tests/Drupal/KernelTests/AssertContentTrait.php
Passes if a link containing a given href (part) is not found.
AssertContentTrait::assertNoLinkByHrefInMainRegion in core/tests/Drupal/KernelTests/AssertContentTrait.php
Passes if a link containing a given href is not found in the main region.
AssertContentTrait::assertNoOption in core/tests/Drupal/KernelTests/AssertContentTrait.php
Asserts that a select option in the current page does not exist.
AssertContentTrait::assertNoOptionSelected in core/tests/Drupal/KernelTests/AssertContentTrait.php
Asserts that a select option in the current page is not checked.
AssertContentTrait::assertNoTitle in core/tests/Drupal/KernelTests/AssertContentTrait.php
Pass if the page title is not the given string.
AssertContentTrait::assertOption in core/tests/Drupal/KernelTests/AssertContentTrait.php
Asserts that a select option in the current page exists.
AssertContentTrait::assertOptionByText in core/tests/Drupal/KernelTests/AssertContentTrait.php
Asserts that a select option with the visible text exists.
AssertContentTrait::assertOptionSelected in core/tests/Drupal/KernelTests/AssertContentTrait.php
Asserts that a select option in the current page is checked.
AssertContentTrait::assertOptionSelectedWithDrupalSelector in core/tests/Drupal/KernelTests/AssertContentTrait.php
Asserts that a select option in the current page is checked.
AssertContentTrait::assertOptionWithDrupalSelector in core/tests/Drupal/KernelTests/AssertContentTrait.php
Asserts that a select option in the current page exists.
AssertContentTrait::cssSelect in core/tests/Drupal/KernelTests/AssertContentTrait.php
Searches elements using a CSS selector in the raw content.
CommentUserNameTest::testUsername in core/modules/comment/tests/src/Kernel/Views/CommentUserNameTest.php
Tests the username formatter.
ExternalFormUrlTest::testActionUrlBehavior in core/tests/Drupal/KernelTests/Core/Form/ExternalFormUrlTest.php
Tests form behavior.
FormActionXssTest::testFormActionXss in core/tests/Drupal/KernelTests/Core/Form/FormActionXssTest.php
Tests form action attribute for XSS.
ImageThemeFunctionTest::testImageAltFunctionality in core/modules/image/tests/src/Kernel/ImageThemeFunctionTest.php
Tests image alt attribute functionality.
ImageThemeFunctionTest::testImageFormatterTheme in core/modules/image/tests/src/Kernel/ImageThemeFunctionTest.php
Tests usage of the image field formatters.
ImageThemeFunctionTest::testImageStyleTheme in core/modules/image/tests/src/Kernel/ImageThemeFunctionTest.php
Tests usage of the image style theme function.
QuickEditLoadingTest::testDisplayOptions in core/modules/quickedit/tests/src/Kernel/QuickEditLoadingTest.php
Tests that fields rendered with display options are not editable.
TableTest::testThemeTableNoStickyHeaders in core/tests/Drupal/KernelTests/Core/Render/Element/TableTest.php
If $sticky is FALSE, no tableheader.js should be included.
TableTest::testThemeTableStickyHeaders in core/tests/Drupal/KernelTests/Core/Render/Element/TableTest.php
Tableheader.js provides 'sticky' table headers, and is included by default.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.