protected function AssertContentTrait::cssSelect in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/simpletest/src/AssertContentTrait.php \Drupal\simpletest\AssertContentTrait::cssSelect()
Searches elements using a CSS selector in the raw content.
The search is relative to the root element (HTML tag normally) of the page.
Parameters
string $selector: CSS selector to use in the search.
Return value
\SimpleXMLElement[] The return value of the XPath search performed after converting the CSS selector to an XPath selector.
34 calls to AssertContentTrait::cssSelect()
- BasicTest::testViewsWizardAndListing in core/
modules/ views/ src/ Tests/ Wizard/ BasicTest.php - BulkFormTest::testBulkForm in core/
modules/ user/ src/ Tests/ Views/ BulkFormTest.php - Tests the user bulk form.
- CommentFieldsTest::testCommentFieldDelete in core/
modules/ comment/ src/ Tests/ CommentFieldsTest.php - Tests that you can remove a comment field.
- CommentOperationsTest::testCommentOperations in core/
modules/ comment/ src/ Tests/ Views/ CommentOperationsTest.php - Test the operations field plugin.
- CommentTestBase::commentExists in core/
modules/ comment/ src/ Tests/ CommentTestBase.php - Checks current page for specified comment.
File
- core/
modules/ simpletest/ src/ AssertContentTrait.php, line 254 - Contains \Drupal\simpletest\AssertContentTrait.
Class
- AssertContentTrait
- Provides test methods to assert content.
Namespace
Drupal\simpletestCode
protected function cssSelect($selector) {
return $this
->xpath(CssSelector::toXPath($selector));
}