You are here

protected function UiHelperTrait::cssSelect in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/UiHelperTrait.php \Drupal\Tests\UiHelperTrait::cssSelect()
  2. 9 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.

21 calls to UiHelperTrait::cssSelect()
BasicTest::testViewsWizardAndListing in core/modules/views/tests/src/Functional/Wizard/BasicTest.php
BrowserTestBaseTest::testCheckForMetaRefresh in core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php
Tests the ::checkForMetaRefresh() method.
BulkFormAccessTest::testNodeEditAccess in core/modules/node/tests/src/Functional/Views/BulkFormAccessTest.php
Tests if nodes that may not be edited, can not be edited in bulk.
BulkFormTest::testBulkForm in core/modules/user/tests/src/Functional/Views/BulkFormTest.php
Tests the user bulk form.
ClaroTest::testIsUninstallable in core/tests/Drupal/FunctionalTests/Theme/ClaroTest.php
Tests that the Claro theme can be uninstalled.

... See full list

File

core/tests/Drupal/Tests/UiHelperTrait.php, line 460

Class

UiHelperTrait
Provides UI helper methods.

Namespace

Drupal\Tests

Code

protected function cssSelect($selector) {
  return $this
    ->getSession()
    ->getPage()
    ->findAll('css', $selector);
}