You are here

protected function MediaLibraryTestBase::getCheckboxes in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php \Drupal\Tests\media_library\FunctionalJavascript\MediaLibraryTestBase::getCheckboxes()
  2. 9 core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php \Drupal\Tests\media_library\FunctionalJavascript\MediaLibraryTestBase::getCheckboxes()

Gets all available media item checkboxes.

Return value

\Behat\Mink\Element\NodeElement[] The available checkboxes.

File

core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php, line 379

Class

MediaLibraryTestBase
Base class for functional tests of Media Library functionality.

Namespace

Drupal\Tests\media_library\FunctionalJavascript

Code

protected function getCheckboxes() {
  return $this
    ->getSession()
    ->getPage()
    ->findAll('css', '.js-media-library-view .js-click-to-select-checkbox input');
}