You are here

protected function FormatterConfigurationTest::find in Video Embed Field 8

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/FormatterConfigurationTest.php \Drupal\Tests\video_embed_field\Functional\FormatterConfigurationTest::find()

Find an element based on a CSS selector.

Parameters

string $css_selector: A css selector to find an element for.

Return value

\Behat\Mink\Element\NodeElement|null The found element or null.

File

tests/src/Functional/FormatterConfigurationTest.php, line 133

Class

FormatterConfigurationTest
Tests the field formatter configuration forms.

Namespace

Drupal\Tests\video_embed_field\Functional

Code

protected function find($css_selector) {
  return $this
    ->getSession()
    ->getPage()
    ->find('css', $css_selector);
}