You are here

protected function EmbedDialogTest::find in Video Embed Field 8

Same name and namespace in other branches
  1. 8.2 modules/video_embed_wysiwyg/tests/src/FunctionalJavascript/EmbedDialogTest.php \Drupal\Tests\video_embed_wysiwyg\FunctionalJavascript\EmbedDialogTest::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

modules/video_embed_wysiwyg/tests/src/FunctionalJavascript/EmbedDialogTest.php, line 131

Class

EmbedDialogTest
Test the dialog form.

Namespace

Drupal\Tests\video_embed_wysiwyg\FunctionalJavascript

Code

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