function UiHelperTrait::cssSelect
Same name in other branches
- 9 core/tests/Drupal/Tests/UiHelperTrait.php \Drupal\Tests\UiHelperTrait::cssSelect()
- 10 core/tests/Drupal/Tests/UiHelperTrait.php \Drupal\Tests\UiHelperTrait::cssSelect()
- 11.x core/tests/Drupal/Tests/UiHelperTrait.php \Drupal\Tests\UiHelperTrait::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
\Behat\Mink\Element\NodeElement[] The list of elements on the page that match the selector.
62 calls to UiHelperTrait::cssSelect()
- AjaxBlockTest::testAddAjaxBlock in core/
modules/ layout_builder/ tests/ src/ FunctionalJavascript/ AjaxBlockTest.php - Tests configuring a field block for a user field.
- BackwardCompatibilityTest::testAjaxBackwardCompatibility in core/
tests/ Drupal/ FunctionalJavascriptTests/ Ajax/ BackwardCompatibilityTest.php - Ensures Drupal.Ajax.element_settings BC layer.
- BasicTest::testViewsWizardAndListing in core/
modules/ views/ tests/ src/ Functional/ Wizard/ BasicTest.php - BigPipeTest::assertBigPipePlaceholders in core/
modules/ big_pipe/ tests/ src/ Functional/ BigPipeTest.php - Asserts expected BigPipe placeholders are present and replaced.
- BlockContentTypeTest::testBlockContentTypeEditing in core/
modules/ block_content/ tests/ src/ Functional/ BlockContentTypeTest.php - Tests editing a block type using the UI.
File
-
core/
tests/ Drupal/ Tests/ UiHelperTrait.php, line 550
Class
- UiHelperTrait
- Provides UI helper methods.
Namespace
Drupal\TestsCode
protected function cssSelect($selector) {
return $this->getSession()
->getPage()
->findAll('css', $selector);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.