You are here

protected function EmbedButtonTest::find in D7 Media 8

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/FunctionalJavascript/EmbedButtonTest.php, line 103

Class

EmbedButtonTest
Ensures that embedding functionality works perfectly.

Namespace

Drupal\Tests\media\FunctionalJavascript

Code

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